【发布时间】:2013-08-28 21:14:18
【问题描述】:
我在 tomcat (port:8080) 中有一组代码,在 apache (port:80) 中有另一组代码。现在我设置的默认端口是 apache (document root: /var/www/html) 和 tomcat (/usr/.../webapps/ROOT)
现在tomcat代码库正在https:// www.example.com中运行
并且 apache 代码库运行在 http://ww.example.com
我把代理写成
ProxyPass /req https://example.com/req
ProxyPassreverse /req https://example/req
所有来自http的请求,包含/req都会去https://example.com/req.
但问题是,它被重定向到 http://example.com/req
我可以做什么来重定向到 https 或者我可以做什么来在“http”中运行 tomcat
【问题讨论】:
标签: apache tomcat proxy mod-proxy