Forum Discussion
HTTP to HTTPS redirect not working with too many redirects
have you tried rewriting it with an iRule? we have had similar situations, and have managed to solve it by adding a stream profile to the virtual server, and an iRule that rewrites all server responses back to https.
the iRule should look something like this:
when HTTP_REQUEST { HTTP::header remove "Accept-Encoding" } when HTTP_RESPONSE { STREAM::disable if { [HTTP::header "Content-Type"] contains "text" || [HTTP::header "Content-Type"] contains "javascript" } { STREAM::expression "@; STREAM::enable
} }
- MegaN00B_270205Nov 29, 2016
Nimbostratus
Thanks for the reply; i've made a (in my view) workaround by making the VS again on port 80; with the redirect https profile; & that works. It just seems to me that it should be possible within 1 VS; & not having to spin up 2 VS's.
Thanks for the help anyway; if anyone has a direction to do this within 1 VS; i'd be glad to hear it.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
