x.city.cn/post/???? 到 ai.city.cn/???? 的 url rewrite 。
感谢~~~
x.city.cn/post/???? 到 ai.city.cn/???? 的 url rewrite 。
感谢~~~
|
zzl22100048Apr 30, 2021
1
不能用 proxy_pass 处理吗
|
|
AoEiuV020Apr 30, 2021
2
rewrite ^/post/(.*) http://ai.city.cn/$1 permanent;
|
|
dierApr 30, 2021
3
试试这个?
``` server_name x.city.cn; location / { root html; } location /post/ { rewrite ^/post/(.*)$ http://ai.city.cn/$1; } ``` |
|
qdporterApr 30, 2021
6
|