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...
Kevin_Stewart
Employee
Oct 01, 2013Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/norwoodwsconfigbridge/norwoodwsconfigbridgeuri*" {
node 205.157.77.42 7002
}
"/psigw/peoplesoftservice*" {
node 205.157.77.43 7000
}
default {
pool local-pool
}
}
}
where "local-pool" is a pool to send traffic to if the request URI doesn't match either of the previous conditions.
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