Hi, On Mon, Jan 25, 2016 at 6:37 PM, Jeremy Shapiro <[email protected]> wrote: > I have a reverse proxy in front of my server that is adding the headers. I > just want my app to process the headers using the > org.eclipse.jetty.server.ForwardedRequestCustomizer customizer. This works > fine if I uncomment the stanza in jetty.xml's httpConfig. But I would > prefer not to have to modify that file.
Sure. You want to make a small module file (say x-fwd.mod) with a dependency on the "server" module that references a new XML file (say x-fwd.xml) where you add the stanza that is commented out. Then you enable the x-fwd module in your start.ini. See https://www.eclipse.org/jetty/documentation/current/startup.html for further details. JETTY_BASE/modules/x-fwd.mod: [depend] server [xml] etc/x-fwd.xml <<EOF JETTY_BASE/etc/x-fwd.xml: <Ref refid="httpConfig"> <Call name="addCustomizer"> <Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg> </Call> </Ref> <<EOF JETTY_BASE/start.ini (diff): + + --module=x-fwd + -- Simone Bordet ---- http://cometd.org http://webtide.com Developer advice, training, services and support from the Jetty & CometD experts. _______________________________________________ jetty-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
