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"} {
H...
CSA
Jan 17, 2011Nimbostratus
Sorry, it was this :
elseif {[HTTP::path] starts_with "/admin"} { pool preprod_admin_pool }
Before, it worked like this:
- user types http://myapp.domain.com/admin
- he's redirected to http://host.domain.com:8082/ (only member today of preprod_admin_pool)
I would like to have this:
- user types http://myapp.domain.com/admin
- he sees the content of http://host.domain:8082/ while having http://myapp.domain.com/admin/ as a URL basis
Your second example works for the first request, but if I click on a link of the app (pointing for example to http://host.domain.com:8082/directory/, the URL I have in the browser is http://myapp.domain.com/directory/ (instead of /admin/directory, so I get a "file not found")
Thanks
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