Skip to content

Instantly share code, notes, and snippets.

@apuravchauhan
Created November 24, 2017 14:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apuravchauhan/9aa18ca39a3d99b8d54f090279b981d3 to your computer and use it in GitHub Desktop.
Save apuravchauhan/9aa18ca39a3d99b8d54f090279b981d3 to your computer and use it in GitHub Desktop.
Tomcat's server.xml with RemoteIpValve settings snippet
.
.
.
.
<Engine defaultHost="localhost" name="Catalina">
<Valve className="org.apache.catalina.valves.RemoteIpValve"
internalProxies="127\.0\.[0-1]\.1"
remoteIpHeader="x-forwarded-for"
requestAttributesEnabled="true"
protocolHeader="x-forwarded-proto"
protocolHeaderHttpsValue="https"/>
.
.
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment