Forum Discussion
Michael_107360
Cirrus
Feb 11, 2014redirect rewirte option in http profile causing looping
I have enabled the redirect rewrite "ALL" in the http profile so it will redirect http:// to https:// server responses, this is working just fine however it causing the application to loop. Any thou...
Daniel_Tavernie
Cirrostratus
Feb 21, 2014I ran into this on a project:
Setup:- http and https Virtual Servers
- http to https redirect irule
- https offload to http pool
- http profile with Redirect Rewrite: All
- Page would not load correctly (html would load but no CSS or images)
- Fiddler revealed that the application servers were redirecting all content requests to the base uri with a single-sign-on logoff parameter appended...and then redirecting the redirect with a duplicate parameter appended...and then again...
- It looped like this until the redirect had 10+ duplicate parameters and it finally gave up, but never returned the real content.
- Finally determined that Redirect Rewrite was rewriting the Referer header to "https://sub.domain.com/path/", which the application (on http) was rejecting/redirecting.
- Used this iRule to rewrite incoming Referer header to "http://sub.domain.com/path/"
when HTTP_REQUEST {
set referer [HTTP::header "Referer"]
if { $referer starts_with "https://" } {
set httpReferer "http://[string range $referer 8 end]"
HTTP::header replace "Referer" $httpReferer
}
}
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