我在 tomcat 中(port:8080)
有一组代码,在 apache 中有另一组代码(port:80)
。现在我设置的默认端口是 apache (文档根目录:/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