Type: New Feature
Affects Version/s: None
Environment:Jetty behind a reverse proxy (especially Apache HTTPD with mod_proxy_http for example)
Number of attachments :
When Jetty is behind a reverse proxy it is not possible to retrieve the following properties of the original request :
This is typically the case when you use a ProxyPass directive with Apache HTTPD and mod_proxy_http.
Tomcat use proxyName and proxyPort for retrieving original host and port:
So i have created a Handler for wrapping the request and providing these original properties when possible.
This handler can be used in two different ways:
- like Tomcat if at least the serverName property is set
- mod_proxy_http if the serverName property is not set and then headers from reverse proxy are used
By default mod_proxy_http headers are used: