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
This is pretty straightforward. You can do something like:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/norwoodwsconfigbridge/norwoodwsconfigbridgeuri" } {
HTTP::respond 301 Location "https://205.157.77.42:7002"
} elseif { [string tolower [HTTP::uri]] starts_with "/psigw/peoplesoftservice" } {
HTTP::respond 301 Location "https://205.157.77.43:7000"
}
}
FYI, this isn't tested, please run your checks before implementing in a production mode.
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