Forum Discussion
Thiyagu_343098
Nimbostratus
Jan 21, 2018Assigning multiple iRULES to a VIP
Hello All,
I need your suggestion on assigning multiple iRULES to the same VIP. What would be the best approach to be followed while assigning multiple iRULES to the same VIP?
- Does the traffic to t...
jaikumar_f5
Noctilucent
Jan 22, 2018yes that should work,
when HTTP_REQUEST {
set rd "%[ROUTE::domain]"
set client_ip [string map "$rd \"\"" [IP::client_addr]]
HTTP::header insert srcaddr $client_ip
if {[HTTP::uri] starts_with "/uri1" } {
pool pool1
} elseif {[HTTP::uri] starts_with "/uri2" } {
pool pool2
} elseif {[HTTP::uri] starts_with "/uri3" } {
pool pool3
} else {
pool default
}
}
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