http://example.com:8000/image/ -> https://example1.com/
这样一个重定向,该怎么写?
我试了rewrite ^(/image)$ https://example1.com/ permenant
结果重定向到https://example1.com/image/
如果你用的openresty,可以看看这个 https://.com/a/1190000004680996
server {
listen 8000;
...
location = /image/ {
proxy_pass https://example1.com/;
}
}