Forum Discussion
Pradeep_Kandala
Nimbostratus
Dec 04, 2014Can we have two irule for the same virtual server, But running only one based on url ?
Can we have two irule for the same virtual server, But running only one based on url ?
I have single url's and 2 irules(can not merge into one due to complexity), and I need to have the i Rules ...
Brad_Parker
Cirrus
Dec 05, 2014Do you need them to executed based on two different HTTP HOST names or two different URIs?
when HTTP_REQUEST {
if {[HTTP::host] starts_with "something.com" } {
Execute something.com iRule
}
elseif {[HTTP::host] starts_with "somethingElse.com" } {
Execute somethingElse.com iRule
}
else {
return
}
}
or
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/something" } {
Execute something iRule
}
elseif {[HTTP::uri] starts_with "/somethingElse" } {
Execute somethingElse iRule
}
else {
return
}
}
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