location ~ ^/new/(.+)/(.+) {
proxy_pass nodejs;
}
上面的效果是访问 访问 http://localhost/new/25/9 的话交 的话交给nodejs处理。但现在有个 有个 http://localhost/news/25/9 我希望 我希望这个news能被自动转成new,请问高手规则如何配置,非常感谢.
location ~ ^/new/(.+)/(.+) {
proxy_pass nodejs;
}
上面的效果是访问 访问 http://localhost/new/25/9 的话交 的话交给nodejs处理。但现在有个 有个 http://localhost/news/25/9 我希望 我希望这个news能被自动转成new,请问高手规则如何配置,非常感谢.
2 回答951 阅读
1 回答720 阅读✓ 已解决
1 回答604 阅读
650 阅读