Forum Discussion
Miron_du_Plessi
Nimbostratus
Nov 03, 2007HTTP Redirect based on URI
Hi,
I have a webserver behind our LTM. Access to the webserver is working correctly when users use the full url of
https://remedy.xxx.net/arsys/home
however we are trying...
Miron_du_Plessi
Nimbostratus
Nov 06, 2007Aaron,
I found the problem in the rule I submitted. As I had the following when i was
when HTTP_Request{
HTTP::redirect https://[getfield [HTTP::host] "." 1][HTTP::uri]
HTTP::redirect "https://remedy.xxx.net/arsys/home"
}
This was not running the 3rd statement possibly because it reads it similar to java (ie only the first statement)
Anyways that worked well to redirect , however after that the login did not work and the website seemed to be looping the client.
I have added the Firefox live headers output from the two tests
Test 1 - Redirect.txt (Login Fails)
when HTTP_Request{
HTTP::redirect "https://remedy.xxx.net/arsys/home"
HTTP::redirect https://[getfield [HTTP::host] "." 1][HTTP::uri]
}
Test 2 - NoRedirect.txt (Login Works)
when HTTP_Request{
HTTP::redirect https://[getfield [HTTP::host] "." 1][HTTP::uri]
HTTP::redirect "https://remedy.xxx.net/arsys/home"
}
Besides for this problem it looks like it may be beneficial to capture the 302 from the server and replace the http with https. Might just clean up the communication.
After that I can look at protecting the webserver identity.
Miron
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
