【发布时间】:2016-12-13 08:52:10
【问题描述】:
我想重定向这样的 /atpf/xyz -> /atp/xyz,我有这样的配置,但似乎不起作用
location /atpfe {
rewrite ^/atp/(.*)$ /$1 break;
proxy_pass http://backend-atp;
}
有人可以推荐吗?
【问题讨论】:
-
位置
/atpfe与您问题中的任何一个 URI 都不匹配,rewrite语句将/atp/xyz更改为/xyz。
标签: nginx reverse-proxy proxypass