扫码关注官方订阅号
http://example.com:8000/image/ -> https://example1.com/
这样一个重定向,该怎么写?我试了rewrite ^(/image)$ https://example1.com/ permenant结果重定向到https://example1.com/image/
rewrite ^(/image)$ https://example1.com/ permenant
https://example1.com/image/
server { listen 8000; ... location = /image/ { proxy_pass https://example1.com/; } }
如果你用的openresty,可以看看这个 /a/1190000004680996
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
如果你用的openresty,可以看看这个 /a/1190000004680996