lipos_54863
Nimbostratus
Mar 26, 2012Secret HTTP redirection
Hi,
I need to hide HTTP redirection on LTMs using an iRule.
Here's my simple example:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/test"} {
HTTP::redirect "http://xx.xx.xx.xx/test"
log local0. "Enabling redirection for HTTP: [HTTP::host][HTTP::uri]"
}
}
In an effect I don't wan't to see http://xx.xx.xx.xx/test in my address but I want to cover it with a domain that this request was forwarded to originariginally.
In summary:
1. I'm sending request to VIP of test.com - it's being forwarded to the POOL. My broswers shows that I'm browsing tes.com. All as usual.
2. I'm sending request to VIP of test.com/test - it's being forwarded to on IP not behind the F5s. My broswers shows that I'm browsing test.com/public
I can't use "node" ot "pool" because these IP in not behind the F5s but rather in the Internet.
Can someone give me any idea or example of code that does it?
Maybe there's a function of iRule that takes care of it?
Let me know what you think!
M