Skip to content

Instantly share code, notes, and snippets.

@finsterwalder
Created December 4, 2017 14:24
Show Gist options
  • Save finsterwalder/636a05514ebbe1a69fe3db44e8bf916a to your computer and use it in GitHub Desktop.
Save finsterwalder/636a05514ebbe1a69fe3db44e8bf916a to your computer and use it in GitHub Desktop.
JBoss AS7 / EAP 6 CLI Configuration for x-forwarded header recognition
/subsystem=web/valve=RemoteIPValve/:add(module=org.jboss.as.web, class-name=org.apache.catalina.valves.RemoteIpValve)
/subsystem=web/valve=RemoteIPValve:add-param(param-name=remoteIpHeader,param-value=x-forwarded-for)
/subsystem=web/valve=RemoteIPValve:add-param(param-name=protocolHeader,param-value=x-forwarded-proto)
/subsystem=web/valve=RemoteIPValve:add-param(param-name=protocolHeaderHttpsValue,param-value=https)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment