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 ...
Kevin_Stewart
Employee
Apr 08, 2013So you're saying if the URI starts with /contexta, /contextb, /contextc, or /contextd, let them through, otherwise silently send them to /contexta plus the requested URI. If that's your intention then this is good. You could probably also you a not context and avoid the "do nothing" clause.
Last, just to be clear, you're silently sending the user request to the /contexta URI (plus requested URI). The user will still only see the requested URI in the browser and not /contexta. That may, depending on the application, cause problems. It might be worthwhile to simply redirect them via 30x message to the new URI.
HTTP::respond 302 Location "/contexta[HTTP::uri]"
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