Skip to content

Instantly share code, notes, and snippets.

@robmoore
Created December 17, 2015 22:13
Show Gist options
  • Save robmoore/265975988a34d34d767f to your computer and use it in GitHub Desktop.
Save robmoore/265975988a34d34d767f to your computer and use it in GitHub Desktop.
Can be used in ${jetty.base}/etc to add forwarded support rather than editing jetty.xml.
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Ref refid="httpConfig">
<Call name="addCustomizer">
<Arg>
<New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/>
</Arg>
</Call>
</Ref>
</Configure>
@robmoore
Copy link
Author

Need to add the following to your start.ini file as well under jetty.base.

echo "etc/forwarded-request-customizer.xml" >> start.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment