我在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
添加端口以进行重定向,将代理传递重写为
ProxyPass /req https://example.com:8080/req
ProxyPassreverse /req https://example:8080/req
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句