Forum Discussion
Jacob_Kinkade_3
Nimbostratus
Jul 17, 2017Need help with irule
Looking for feedback on irule for redirect. I am a network engineer who had our loadbalancers dumped in my lap and a request for an irule to be placed.
Not familiar at all with how to do this but I...
Heinrichm_18951
Cirrus
Jul 18, 2017I haven't tested this iRule but given the conditions I'd go for
when HTTP_REQUEST {
redirects the client to the correct catalogue
if { ([string tolower [HTTP::host]] equals "server-fiver.domain.com") && ([string tolower [HTTP::uri]] == "/index") }{
HTTP::redirect https://[HTTP::host]/location/
}
send the client to the server when requesting this catalogue
if { [string tolower [HTTP::uri]] starts_with "/location/" } {
pool my_pool member srv-one-games001-test 443
}
}
If there's only one domain for the VIP it is not necessary to have both conditions in the first if statement.
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
