Forum Discussion
Kamila_124825
Nimbostratus
May 29, 2013Redirect to host port
Hi,
I want to create iRule with redirection. Something like this -> Pool under dns name mysite.com:80 should route members HOST:8080/test/
is the iRule like this will work?? ->
when H...
Kamila_124825
Nimbostratus
May 31, 2013Hmm.. VIP is listening on port 80. but I think I don't need a physically redirection, because a member register in pool with 8080 port. So maybe will work only this:
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/test" ) } {
HTTP::redirect "http://[HTTP::host]/test[HTTP::uri]"
}
}
What do you think?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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