【问题标题】:ProxyPass for https not workinghttps的ProxyPass不起作用
【发布时间】: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


    【解决方案1】:

    添加端口重定向,将代理通行证重写为,

    ProxyPass /req https://example.com:8080/req
    ProxyPassreverse /req https://example:8080/req
    

    【讨论】:

      猜你喜欢
      • 2015-11-22
      • 2014-07-17
      • 1970-01-01
      • 2021-05-16
      • 1970-01-01
      • 1970-01-01
      • 2014-11-07
      • 1970-01-01
      • 2018-12-15
      相关资源
      最近更新 更多