Forum Discussion
Reginald_Sible1
Nimbostratus
Oct 01, 2013How do you build an iRule to re-direct a VIP to a server based on URL?
Im trying to create a vip with the address of 205.157.112.167 port 80 and I want traffic with the url of "/NorwoodWSConfigBridge/NorwoodWSConfigBridgeuri" to go to node 205.157.77.42 port 7002 and ur...
Oct 01, 2013
I just noticed that you said node for the redirect. Using samples from: iRules 101 - 05 - Selecting Pools, Pool Members, and Nodes
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/norwoodwsconfigbridge/norwoodwsconfigbridgeuri" } {
pool MYPOOL member 205.157.77.42 7002
} elseif { [string tolower [HTTP::uri]] starts_with "/psigw/peoplesoftservice" } {
pool OTHERPOOL member 205.157.77.43 7000
}
}
(edited for case issues)
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