linux 下nginx 中伪静态错误 directive "rewrite" is not terminated by ";" in

2016-08-31 来源:apizl.com 点击:214

在nginx配置伪静态时候重启lnmp时候报错。

Stoping nginx... nginx: [emerg] directive "rewrite" is not terminated by ";" in /usr/local/nginx/conf/nginx.conf:97

rewrite ^.{0,1}$ /html/index/ last; #pathinfo; 错误的
rewrite "^.{0,1}$" /action/js.php?i=$1 break; 正确的

QQ截图20160831180303.png

文章由爱资料原创 来源:http://www.apizl.com/archives/view-132737-1.html,欢迎分享本文,转载请保留出处!
Tag:linux nginx  

相关文章


分享: