apache转发规则 + nginx location 正则匹配经典案例
0.apache的proxypass浏览器url不会变 我们想要的效果是请求http://qwyimg.haha.com.cn/......直接返回结果,而不是请求http://qwyimg.haha.com.cn/......返回一个地址,在通过这个返回的地址在去请求拿到结果 ProxyPass "/qiqiao/storage/oss/files/" "http://10.0.2.11:8000/qiqiao/runtime/api/v1/storage/oss/files/" ProxyPassReverse "/qiqiao/storage/oss/files/" "http://10.0.2.11:8000/qiqiao/runtime/api/v1/storage/oss/files/" server_name qy.haha.com.cn 0.0.0.0 qwyimg.haha.com.cn; nginx的location ProxyPass /qiqiao/storage/oss/files https: // qy.haha.com.cn/qiqiao/runtime/api/qiqiao/storage/oss/files/storage/oss/files/ ProxyPassReverse /qiqiao/storage/oss/files https: /