Board logo

标题: [提问] Nginx配置文件有错 [打印本页]

作者: shunyixn    时间: 2016-6-2 21:49     标题: Nginx配置文件有错

配置文件检查
当前运行 Nginx+Apache    再次检查

大神帮忙看看,小白,第一次使用Wcdp,但在做检查时报

Nginx配置文件有错
nginx: [emerg] invalid condition "\$invalid_referer" in /www/wdlinux/nginx/conf/vhost/shunyimall.com.conf:12
nginx: configuration file /www/wdlinux/nginx/conf/nginx.conf test failed

Apache配置文件正常
作者: shunyixn    时间: 2016-6-2 22:44

/www/wdlinux/nginx/conf/vhost/shunyimall.com.conf

server {
        listen       80;
        root /www/web/shunyimall/public_html;
        server_name shunyimall.com www.shunyimall.com;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
        location ~ \.php$ {
                proxy_pass http://127.0.0.1:88;
                include naproxy.conf;
        }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
                expires      1d;
        }
        location ~ .*\.(js|css|htm)?$ {
                expires      12h;
        }
        location ~ /\.ht {
                deny  all;
        }
        location / {
                try_files $uri @apache;
        }
        location @apache {
                 proxy_pass http://127.0.0.1:88;
                 include naproxy.conf;
        }
}




欢迎光临 WDlinux官方论坛 (http://www.wdlinux.cn/bbs/) Powered by Discuz! 7.2