-
原始地址:
https://test.start6.cn/xt/pdAgent/api/file/Image/getImg?type=annexpic&fileName=64f9a59fe4b0124a1d02d63c.jpeg
-
代理地址:
https://test.start6.cn/proxyImg/api/file/Image/getImg?type=annexpic&fileName=64f9a59fe4b0124a1d02d63c.jpeg
- 或者使用
https://test.start6.cn/proxyImg/api/file/Image/annexpic/64f9a59fe4b0124a1d02d63c.jpeg
- 或者使用
-
nginx配置
location ^~ /proxyImg/ { proxy_pass https://zk.start6.cn/xt/pdAgent/; access_log /data/app/nginx/logs/jcfw/access_log.log; }
-
可以实现把
https://test.start6.cn/proxyImg/
开头,后面的接口地址直接代理到https://zk.start6.cn/xt/pdAgent/
下
文章评论