伪静态规则改来改去总是报错提示不是以分号结尾的,可明明规则都是有;结尾的。

nginx: [emerg] directive "rewrite" is not terminated by ";" in /www/server/panel/vhost/rewrite/web.demo.conf:1
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

最后发现是规则内不能有大括号{},使用其他方法规避后解决。

Last modification:May 10, 2025
如果觉得我的文章对你有用,请随意赞赏