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

对于下面的重写规则

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 ";"   

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

posted on 2015-10-27 10:54  jenqz  阅读(925)  评论(0编辑  收藏  举报