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...
Chris_Miller
Jan 17, 2011Altostratus
Posted By CS on 01/17/2011 08:27 AM
1. User requests http://myapp.domain.com/admin/ . It works, he gets let's say "index.html" file (thanks to your tip with HTTP::uri /[string range [HTTP::uri] 6 end]
)
2. User clicks on a link pointing to "/directory/foobar.html"
3. It doesn't work because in the index.html page the user is getting, the link is "/directory/foobar.html". And it should be "/admin/directory/foobar.html" to have it redirected properly I think.
I think I have to rewrite server's response.
It sounds like index.html is using relative links then, no? If the user gets a 404 for /directory/foobar.html, why are we trying to remove the /admin from the request?
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