Christian_Meiss
Aug 05, 2016Nimbostratus
simulate special mod_proxy behaviour
Hi folk,
I can reproduce the following
ProxyPass /foo http://host.domain.tld/foo
with
if {[HTTP::uri] eq "/foo"}{
pool target_pool
}
But i'm not able to do this:
ProxyPass /foo http://host.domain.tld/bar
I need something like this:
if {[HTTP::uri] eq "/foo"}{
pool target_pool /bar
}
But this is not available.
I tried this but this is not handy because /bar can also be a location on local
if {[HTTP::uri] eq "/foo"}{
HTTP::redirect /bar
pool target_pool
}
Any suggestions?
Cheers Christian