Forum Discussion
PCarroll_70972
Nimbostratus
Mar 22, 2007IRule Newbie needs help with simple redirection
Hello All,
I have two URLS that will point to the same Virtual Server IP address:
url.mydomain.com
url2.mydomain.com
I want traffic destined url.mydomain.com to go ...
JRahm
Admin
Mar 22, 2007Assuming the requests are standard http, or you are terminating SSL on the LTM, this should work for you:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "url.mydomain.com" } {
pool pool1
} elseif { [string tolower [HTTP::host]] equals "url2.mydomain.com" } {
pool pool2
} else { pool default_pool }
}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
