perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
854 stars 246 forks source link

Browser didn't work #197

Open hank-yang opened 9 years ago

hank-yang commented 9 years ago

I need some help for this problem: I'm using perusio/drupal-with-nginx config. I configured the v-host file and enabled the site, but my browser didn't work. I entered my domain.com and always got the welcome to nginx page. How can I fix this?

Here is my config

server {

This is to avoid the spurious if for sub-domain name

"rewriting".

listen 80; # IPv4

Replace the IPv6 address by your own address. The address below

was stolen from the wikipedia page on IPv6.

listen [fe80::202:b3ff:fe1e:8329]:80 ipv6only=on;

server_name www.drupal.a.tw;

return 301 $scheme://drupal.a.tw$request_uri; } # server domain return.

root /var/www/sites/drupal.a.tw; index index.php;