WDlinux官方论坛's Archiver

shunyixn 发表于 2016-6-2 21:49

Nginx配置文件有错

[table=98%,rgb(227, 230, 235)]
[tr][td=2,1][b]配置文件检查[/b][/td][/tr]
[tr=rgb(243,][td][/td][td]当前运行 Nginx+Apache    [url=http://112.124.37.201:1990/site/list?act=cfc]再次检查[/url][/td][/tr]
[/table]
大神帮忙看看,小白,第一次使用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;
        }
}

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.