出现提示 invalid location modifier 是什么意思?
nginx: [emerg] invalid location modifier "~~" in /alidata/server/nginx/conf/vhosts/plczxc.conf:7
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test failed
以下是配置文件
server {
listen 80;
server_name zy.51dll.com;
index index.html index.htm index.php;
root /alidata/www/plc-tcms;
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#伪静态规则
include /alidata/server/nginx/conf/rewrite/phpwind.conf;
log_format plc-tcms '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /alidata/log/nginx/access/default.log plc-tcms;
}
引用第3楼小艺于2013-08-12 15:53发表的 :
nginx: [emerg] invalid location modifier "~~" in /alidata/server/nginx/conf/vhosts/plczxc.conf:7
提示说的很清楚 多了一个~ 去掉重载配置文件进程即可 [url=https://bbs.aliyun.com/job.php?action=topost&tid=144303&pid=421730][/url]
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。