Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Grammar


Supporting X-Forwarded-For

If your you are running the Jetty engine behind a proxy or load balancer Jetty 9.3 has built-in support for forwarding the client address and other details via headers.


Code Block
<Set name="outputBufferSize">32768</Set>
<Set name="requestHeaderSize">8192</Set>
<Set name="responseHeaderSize">8192</Set>

<Call name="addCustomizer">
   <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer" /></Arg>
If your you are using a custom header, you can change the addCustomizer section to specify the custom header. An example is below: