Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] adding http ForwardRequestCustomizer from $JETTY_BASE

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.

On Mon, Jan 25, 2016 at 11:31 AM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Mon, Jan 25, 2016 at 4:01 PM, Jeremy Shapiro <jnshapiro@xxxxxxxxx> wrote:
> I would like to enable handling of X-Forwarded-* headers in my Jetty 9.3
> standalone instance.  But I do not want to modify the $JETTY_HOME/etc/*.xml
> files (specifically jetty.xml and jetty-http.xml).  I would prefer to do
> this from a file in my $JETTY_BASE/webapps xml files.  Is this possible?

The ProxyServlet and its subclasses already add the X-Forwarded-* headers.
Are you using those classes already ?

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top