sterreta_87927
Oct 15, 2014Nimbostratus
My iRule is creating a redirect loop!
I have a LTM virtual server that receives port 80 traffic and redirects it via a HTTP Class Profile to HTTPS and my port 443 virtual server. I am having trouble handling incoming URI's failing. I am trying to change the path for an incoming host request so that the existing path is replaced with "/wfc/navigator/logonWithUID"
This is the rule I came up with. It works with all of my test URL's in that it rewrites the path correctly (as seen in the web browser address bar), but it has a redirect loop and never gets past the virtual server to the Pool. Log checks confirm the looping
when HTTP_REQUEST {
if {[HTTP::host] contains "timesheet"} {
HTTP::uri "/wfc/navigator/logonWithUID"
log local0.info "why wont you work"
}
}
These are my test URL's:
http://timesheet.widget.com
http://timesheet.widget.com/
https://timesheet.widget.com
https://timesheet.widget.com/
http://timesheet.widget.com/wfc/logon
http://timesheet.widget.com/wfc/logon/
https://timesheet.widget.com/wfc/logon
https://timesheet.widget.com/wfc/logon/
I just cannot figure out the looping. Any help is much appreciated.