大家好,我在安装perusio的nginx设定档遇到了问题,我将sites-available里面的,example.com启用以后,用浏览器连结只会连到welcome to nginx 无法连结到设定的路径,请问要怎么解决这个问题,謝謝大家
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.hifi.b.tw;
return 301 $scheme://example.com$request_uri;
} # server domain return.
## HTTP server.
server {
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:8330]:80 ipv6only=on;
server_name hifi.b.tw;
limit_conn arbeit 32;
## Access and error logs.
access_log /var/log/nginx/hifi.b.tw_access.log;
error_log /var/log/nginx/hifi.b.tw_error.log;
## See the blacklist.conf file at the parent dir: /etc/nginx.
## Deny access based on the User-Agent header.
if ($bad_bot) {
return 444;
}
## Deny access based on the Referer header.
if ($bad_referer) {
return 444;
}
## Protection against illegal HTTP methods. Out of the box only HEAD,
## GET and POST are allowed.
if ($not_allowed_method) {
return 405;
}
## Filesystem root of the site and index.
root /var/www/hifi.b.tw/;
index index.php;
## If you're using a Nginx version greater or equal to 1.1.4 then
## you can use keep alive connections to the upstream be it
## FastCGI or Apache. If that's not the case comment out the line below.
fastcgi_keep_conn on; # keep alive to the FCGI upstream