Forum Discussion
Raj_Zucre_Ramir
May 18, 2011Nimbostratus
Redirection inside the pool using different URI
Hi Guys,
May I seek your help again?
I have this VS:
}
virtual VS_Headlines {
translate service enable
snat automap
pool headlines_pool_8402
destination 10.30.12.10:any
ip protocol tcp
profiles {
http {}
tcp {}
}
}
}
pool headlines_pool_8402 {
action on svcdown reselect
slow ramp time 60
monitor all TCP_8402
members 10.80.90.45:8402 {}
}
I would like to create a http --> https redirect and at the same time uri redirection where if there is "/" then it should be redirected to /newsliner
Is this possible? Redirection seems to be inside the pool?
Thanks!
- hoolioCirrostratusI'd create a new port 80 virtual server on the same IP as the any port VS. You could then add an HTTP profile and use an iRule like this to do the redirection.
when HTTP_REQUEST { switch [HTTP::path] { "/" { Send a 302 redirect HTTP::redirect "/newsliner" Rewrite the URI and send HTTP::uri "/newsliner" } default { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects