Pahan Asked: 2023-03-09 01:05:24 +0800 CST nginx url 用特殊字符重写正则表达式 5 如何编写一个正则表达式来匹配具有保留字符(如“+”、“-”)的路径节点?例如: https://e.example.com/foo+/bar/file/test.txt需要重写为https://e.example.com/bar/file/test.txt 我试过了rewrite ^/foo+(/.*)$ break;,但它无法匹配字符串。 有什么建议么? nginx