Forum Discussion
CSA
Nimbostratus
Jan 17, 2011Simple reverse proxy
Hi,
I'm trying to do something quite easy but I can't make it work.
I have an irule like this:
[...]
elseif {[HTTP::path] starts_with "/admin"} {
H...
Chris_Miller
Altostratus
Jan 18, 2011That makes more sense.
I suppose you could do something like this:
1. From HTTP_REQUEST, set a variable like "admin" to a value like "1" if [HTTP::path] started with "/admin." We'd then also get rid of "/admin" before sending the request to the server.
2. From HTTP_RESPONSE, we could check if "admin" equaled "1" and if it did, insert a cookie on the user's machine.
3. Then, we'd also add logic to our HTTP_REQUEST event so if the user had such a cookie, we'd send them to the admin pool regardless of whether their request contained /admin.
The immediate issue with that would be if the user no longer wanted to go to the admin pool but still had the cookie. I'll give it some thought and see if I can come up with something.
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
