Bug #432
closedRedirects escape reverse proxy use of mod_proxy
Description
A redirect emitted by a backend server including a host and port will escape to the browser, bypassing the reverse proxy for future requests.
Apache's ProxyPassReverse rewrites Location: headers from the backend proxied servers to not include the port number and host.
-- aredridel
Files
Updated by Anonymous almost 19 years ago
The attached patch adds a per-proxy option to fix redirects:
proxy.server = (
"/" => (
"backend" => (
"host" => "127.0.0.1",
"port" => 12021,
"fix-redirects" => 1
)
)
)
-- aredridel
Updated by conny almost 19 years ago
See also ticket #17, where the severity of this issue is considered not to be a bug. Nevertheless I would like to maintain that it is a wishlist item.
Updated by conny almost 19 years ago
I'm looking at how to implement tests for mod_proxy - these are typical cases that we should be testing for...
Updated by jan almost 19 years ago
- Status changed from New to Assigned
In tests/mod-proxy.t you can see how we test for up to now.
Basicly we use 2 lighttpd instances while the second server is usually echoing some parts of the environment and the first is proxying.
Updated by conny almost 19 years ago
Ehm, there is no tests/mod-proxy.t in the source tree :-)
Updated by jan over 17 years ago
- Status changed from Assigned to Fixed
- Resolution set to fixed
fixed in the trunk/ tree with the proxy-core.rewrite-response setting.
Also available in: Atom