Forum Discussion
Angelo
Nimbostratus
Oct 22, 2012Mutiple i-rules on one VS
Hi
I have a request from a client to create a VS with two rules that need to be aplied to it.. one if traffic comes in on http i should send it to a specific pool if traffic comes in as ...
What_Lies_Bene1
Cirrostratus
Oct 23, 2012I think this might cover it;
rule myrule {
when CLIENT_ACCEPTED {
set is_ssl 0
}
when CLIENTSSL_HANDSHAKE {
set is_ssl 1
}
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/apps" } {
if { $is_ssl } {
pool foo1
} else {
pool foo2
}
}
elseif { $is_ssl } {
pool foo3
} else {
pool foo4
}
}
}
The first if checks for the /apps URI, if a match it checks for SSL, if a match, goes to pool foo1, if no SSL, pool foo2. If no match for /apps it checks for SSL, if a match, goes to pool foo3, if no SSL, pool foo4.
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