码迷,mamicode.com
首页 > 其他好文 > 详细

nginx重写规则报nginx: [emerg] directive "rewrite" is not terminated by ";"

时间:2015-10-27 11:11:28      阅读:849      评论:0      收藏:0      [点我收藏+]

标签:

对于下面的重写规则

rewrite ^/gongying/([\d]{8})_([\d]+).html$ /index.php?app=support&act=view&pts=$1&support_id=$2 last;

始终报: nginx: [emerg] directive "rewrite" is not terminated by ";"   

测到最后发现原来是{}惹的祸,用引号引起来就没问题了

nginx重写规则报nginx: [emerg] directive "rewrite" is not terminated by ";"

标签:

原文地址:http://www.cnblogs.com/jenqz/p/4913550.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!