Forum Discussion
CSA
Jan 17, 2011Nimbostratus
Simple 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"} { HTTP::redirect pool preprod_admin_pool }
[...]
My pool has two web servers listening on port 8082, and their document root is "/".
I would like to have "/admin" removed from HTTP:uri on the backend requests (ie client still use myhost.com/admin/)
Can I do this easily ? I had a look to reverseproxy big irule but it looks complicated for what I want to achieve.
Thanks,
- Chris_MillerAltostratusSo, is the issue that the user gets sent to the admin pool by requesting "/admin" which contains /directory/index.html. If the user clicks a link off of index.html, i.e. "/directory/foobar.html," they're no longer being sent to the admin pool, but to the business application. Is that the issue?
- CSANimbostratusExactly. That's why I need the /admin on the client side, and no /admin on the server side.
- Chris_MillerAltostratusThat makes more sense.
- Chris_MillerAltostratusQuick question for you. Any chance you could use a different host header for admin traffic?
- CSANimbostratusUnfortunately, we can't do this. We already have many URLs and we are migrating from a system working with a /admin in the URL. In the previous configuration, there was a HTTP::redirect, so users saw the admin server hostname in the URL. In the new configuration, I'd like to have this name "masqueraded"
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