没有www没有找到Nginx 404

时间:2015-07-24 02:04:00

标签: linux nginx

我已经在域面板中进行了配置,并且dns区域与www工作,但是当我尝试访问我的域名时,我得到了nginx错误404。

我的nginx设置文件:

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        root /usr/share/nginx/html/appico.com.br;
        index index.php index.html;

        # Make site accessible from http://localhost/
        server_name appico.com.br  www.appico.com.br *.appico.com.br ;

          location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
#               try_files $uri $uri/ =404;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
try_files $uri $uri/ /index.php?query_string;
             }

0 个答案:

没有答案