NAME
Plack::Middleware::Proxy::RewriteLocation - Rewrites redirect headers
SYNOPSIS
use
Plack::Builder;
use
Plack::App::Proxy;
builder {
enable
"Proxy::RewriteLocation"
;
};
### or, if mounting (i.e. URLMap) the proxied site at /foo
builder {
};
DESCRIPTION
Plack::Middleware::Proxy::RewriteLocation rewrites the Location
header in the response when the remote host redirects using its own headers, like mod_proxy's ProxyPassReverse
option.
OPTIONS
- url_map (arrayref)
-
If given, will account for mounted (URLMapped) Proxy apps when rewriting
Location
headers. Will be applied in order, stopping at the first successful match with the remoteLocation
.
AUTHOR
Tatsuhiko Miyagawa Robert Buels