Skip to content

Instantly share code, notes, and snippets.

@finsterwalder
Created December 4, 2017 14:26
Show Gist options
  • Save finsterwalder/04021dabc05e21312cb61c769b2217fd to your computer and use it in GitHub Desktop.
Save finsterwalder/04021dabc05e21312cb61c769b2217fd to your computer and use it in GitHub Desktop.
JBoss AS7 / EAP 6 configuration for x-forwarded header recognition
<subsystem xmlns="urn:jboss:domain:web:2.2" … >
<valve name="RemoteIPValve" module="org.jboss.as.web" class-name="org.apache.catalina.valves.RemoteIpValve">
<param param-name="remoteIpHeader" param-value="x-forwarded-for"/>
<param param-name="protocolHeader" param-value="x-forwarded-proto"/>
<param param-name="protocolHeaderHttpsValue" param-value="https"/>
</valve>
</subsystem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment