-1.需求:两个事情,把测试环境release得微服务接口都开放一个外网端口出来(tqy.do1.net.cn/微服务名称/ 映射到 ip:port/micro 上)也可以提供下ip连接,给测试小伙伴做压测
ProxyPass "/dqsf-report/" "http://dqdp-report-boot:8887/micro/" ProxyPassReverse "/dqsf-report/" "http://dqsf-report-boot:8887/micro/"
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://qy.haha.com.cn/qiqiao/runtime/api/qiqiao/storage/oss/files/storage/oss/files/
1.apache转发规则
运维侧修改管理后台与个人网页版的apache配置实现以下跳转: /qwy/manager/login.jsp 修改为https://qy.haha.com.cn/qwy/login /qwy/manager/loginweb.jsp 修改为https://qy.haha.com.cn/qwy/login /web/manager/login.jsp 修改为https://qy.haha.com.cn/web/login /web/manager/loginweb.jsp 修改为https://qy.haha.com.cn/web/login RewriteEngine On
这个还是跳的登录页面,明天调整下,跳到/login www.a.com/dev-wxqyh/manager/login.jsp
RewriteCond %{REQUEST_URI} ^/.*/manager/login.*.jsp
RewriteRule ^/(.*)/manager/login(.*).jsp /($1)/login
RewriteCond %{REQUEST_URI} ^/qwy/manager/login.*.jsp
RewriteRule .* https://qy.haha.com.cn/qwy/login
RewriteCond %{REQUEST_URI} ^/web/manager/login.*.jsp
RewriteRule .* https://qy.haha.com.cn/web/login