Fixes #20713. protocolHeader="X-Forwarded-Proto".
This commit is contained in:
parent
8b870bfb9e
commit
c73136c06e
|
@ -126,6 +126,16 @@
|
||||||
-->
|
-->
|
||||||
<Engine name="Catalina" defaultHost="localhost">
|
<Engine name="Catalina" defaultHost="localhost">
|
||||||
|
|
||||||
|
{% if tomcat_ajp_enabled %}
|
||||||
|
<!-- Automatically substitutes the IP with the one contained
|
||||||
|
in the x-forwarded-for header if that header is set -->
|
||||||
|
<Valve className="org.apache.catalina.valves.RemoteIpValve"
|
||||||
|
remoteIpHeader="X-Forwarded-For"
|
||||||
|
protocolHeader="X-Forwarded-Proto"
|
||||||
|
protocolHeaderHttpsValue="https"
|
||||||
|
/>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!--For clustering, please take a look at documentation at:
|
<!--For clustering, please take a look at documentation at:
|
||||||
/docs/cluster-howto.html (simple how to)
|
/docs/cluster-howto.html (simple how to)
|
||||||
/docs/config/cluster.html (reference documentation) -->
|
/docs/config/cluster.html (reference documentation) -->
|
||||||
|
@ -154,9 +164,6 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
{% if tomcat_access_log_enabled %}
|
{% if tomcat_access_log_enabled %}
|
||||||
<!-- Automatically substitutes the IP with the one contained
|
|
||||||
in the x-forwarded-for header if that header is set -->
|
|
||||||
<Valve className="org.apache.catalina.valves.RemoteIpValve" />
|
|
||||||
<!-- Access log processes all example.
|
<!-- Access log processes all example.
|
||||||
Documentation at: /docs/config/valve.html
|
Documentation at: /docs/config/valve.html
|
||||||
Note: The pattern used is equivalent to using pattern="combined" -->
|
Note: The pattern used is equivalent to using pattern="combined" -->
|
||||||
|
|
Loading…
Reference in New Issue