对于下面的重写规则
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 ";"
测到最后发现原来是{}惹的祸,用引号引起来就没问题了
对于下面的重写规则
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 ";"
测到最后发现原来是{}惹的祸,用引号引起来就没问题了