Forum Discussion
NewTOF501_15047
Nimbostratus
Apr 10, 2014irule which check if uri contains services
I need a irule which check if uri contains services like http://domain.name.com/services" or "oservices" then send traffic to service_pool or oservice_pool but before that it should change uri to /wp...
a_pavlov_114144
Cirrus
Apr 10, 2014You should assign something like the following iRule to your virtual server:
when HTTP_REQUEST {
if { [HTTP::uri] contains "services" } {
HTTP::redirect "/wps/portal"
pool SERVICE_POOL
}
elseif { [HTTP::uri] contains "oservices" } {
HTTP::redirect "/wps/portal"
pool OSERVICE_POOL
}
}
NewTOF501_15047
Nimbostratus
Apr 10, 2014Thanks. I tried but it is sending traffic to default pool not to member of service_pool
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
