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 29, 2013but when I write mysite.com then will not redirect me to 8080 port.
only to http://host/test
I need to add :8080?
when HTTP_REQUEST {
if { not ( [string tolower [HTTP::uri]] starts_with "/test" ) } {
HTTP::redirect "http://[HTTP::host]:8080/test[HTTP::uri]"
} else {
HTTP::header replace Host "[HTTP::host]:8080"
}
}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