Forum Discussion
Anuj_Chaudhary_
Nimbostratus
Feb 11, 2016URL redirection
Hi,
URl3https://uatservices.goindigo.in should be redirectd both servers like 1.2.3.4 and 1.2.3.5
but below urls should be redirected to the only one pool member 1.2.3.4
https://uatservic...
Josiah_39459
Feb 11, 2016Historic F5 Account
Check out the example irules here:
https://devcentral.f5.com/wiki/iRules.pool.ashx
especially this one seems exactly like what you want to do
--
when HTTP_REQUEST {
if { [HTTP::uri] ends_with ".gif" } {
if { [LB::status pool my_Pool member 10.1.2.200 80] eq "down" } {
log "Server $ip $port down!"
pool fallback_Pool
} else {
pool my_Pool member 10.1.2.200 80
}
}
}
--
- Anuj_Chaudhary_Feb 11, 2016
Nimbostratus
My backend servers are 172.23.100.11 and 172.23.100.12 Uatservices.goindigo.in should go. To both servers..rest URLs should go nly 172.19.100.11..how will be the irule ? Can we include all poinintg URLs word in one irule ???
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