MeAndMyBIGIP_60
Sep 02, 2009Nimbostratus
Nesting a redirect to another pool?
So I have an existing HTTP > HTTPS redirect rule running fine that's running on Pool1:
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
I have another, Pool2, that I'd like to make visible without having to get another firewall hole & external IP going
Pool 1, site https://www.foo.com
Pool 2, site http://www.bar.com
Would like to have http://www.foo.com redirect to https://www.foo.com (this runs fine)
Would also like to have http://www.foo.com/bar redirect to http://www.bar.com
I had tried
when HTTP_REQUEST {
HTTP::redirect https://[HTTP::host][HTTP::uri]
if {[HTTP::uri] equals {www.foo.com/bar}} {pool Bar_Pool}
}
}
but i get 404 errors, presumably because there is no "/bar" folder on the Bar_Pool servers
can I do this somehow?