Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Clarify jetty's behaviour on IPv6, XFF & STRIP_IPV6

...

If you are running the Jetty engine behind a proxy or load balancer Jetty has built-in support for forwarding the client address and other details via headers using its http-forwarded module, and after enabling it as above you can edit the resulting properties file to configure it.

You may also need to add/enable a system property via "-Dorg.eclipse.jetty.util.HostPort.STRIP_IPV6=true" to

...

strip the brackets from

...

an IPv6

...

address if this causes problems with some SPs.

Currently Jetty 9.4 adds brackets around the IPv6 address if the address in the X-Forwarded-For header does not containt brackets. You can solve this by adding the brackets to the X-Forwarded-For header and the STRIP_IPV6 parameter. More info https://github.com/eclipse/jetty.project/issues/1503#issuecomment-631052792

Configure Jetty to listen only on HTTP

...