Troubleshooting Reverse Proxy Configurations

In the Tomcat server.xml file you can add more debug logging to get access to the values of the various reverse proxy HTTP headers in the access log. To do that, modify the default AccessLogValve configuration to include the headers you want to log. in the following example Host, X-Forwarded-For and X-Forwarded-Proto with their respective values:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
      prefix="localhost_access_log" suffix=".txt"
      pattern="%h %l %u %t &quot;%r&quot; %s %b Host: %{Host}i X-Forwarded-Port: %{X-Forwarded-Port}i X-Forwarded-Proto: %{X-Forwarded-Proto}i" />