Forum Discussion
Robert_Vernon_1
Nimbostratus
Apr 05, 2013Uinsing irules to fileter via uri context
So here is my situation:
I have a set of servers (poolA) running an 4 applications (context[A-D])
http://someserver/contextA
http://someserver/contextB
http://someserver/contextC ...
Robert_Vernon_1
Nimbostratus
Apr 07, 2013I think I got it:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/contexta" ||
[HTTP::uri] starts_with "/contextb" ||
[HTTP::uri] starts_with "/contextc" ||
[HTTP::uri] starts_with "/contextd" } {
do nothing
}
else {
HTTP::uri "/contexta[HTTP::uri]"
}
}
So I have 4 contexts (they are all on the same server; there are three servers in a single pool, the poll is linked to the VIP). Am I correct if I assume that since I have specified the contexts available on this VIP only those contexts will be accessible by users?
My concern is that I do not wish to expose the jmx console on the application server we are running. Eventually I'd like this rule to parse each context for sanity.
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