Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327562 - jetty proxy headers
Summary: jetty proxy headers
Status: RESOLVED FIXED
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: All Windows 7
: P3 normal (vote)
Target Milestone: 7.1.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 10:48 EDT by support CLA
Modified: 2010-10-12 20:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description support CLA 2010-10-12 10:48:44 EDT
Build Identifier: 6.1.22

There are a bunch of headers that can be set in a proxy to tell the server where the original request came from, like

    private String _forwardedHostHeader = "X-Forwarded-Host"; 
    private String _forwardedServerHeader = "X-Forwarded-Server"; 
    private String _forwardedForHeader = "X-Forwarded-For"; 
    private String _forwardedProtoHeader = "X-Forwarded-Proto"; 

Jetty proxy does not appear to set those fields.

Reproducible: Always
Comment 1 Greg Wilkins CLA 2010-10-12 20:35:31 EDT
Fix has been committed to jetty-7 trunk r2343.

Will patch jetty-6 next.
Comment 2 Greg Wilkins CLA 2010-10-12 20:39:57 EDT
fixed in jetty-6 r6208

Note that both proxies were sending X-Forwarded-For headers, so I have just added X-Forwareded-Host/Server/Proto