Apache & Tomcat: ProxyPass and ProxyPassReverse

后端 未结 7 2052
眼角桃花
眼角桃花 2021-01-31 20:44

I\'am having troubles configuring Apache and Tomcat, this is the scenario:

I have an Apache Web Server, running and working normally, I can access to this one just typin

7条回答
  •  情书的邮戳
    2021-01-31 21:15

    you may try adding:

    ProxyPreserveHost On
    

    From the documentation:

    "When enabled, this option will pass the Host: line from the incoming request to the proxied host, instead of the hostname specified in the ProxyPass line.

    This option should normally be turned Off. It is mostly useful in special configurations like proxied mass name-based virtual hosting, where the original Host header needs to be evaluated by the backend server."

提交回复
热议问题