Forum Discussion
Luca_55898
Aug 04, 2011Nimbostratus
redirect HTTPS to HTTP
So this is backwards from most requests, but i need to redirect anything that comes to a site on HTTPS to HTTP.
Will this do it?
when HTTP_REQUEST {
if {[HTTP::uri] equals {https://www....
Kevin_Davies_40
Aug 04, 2011Nacreous
1. What you have done above is not a redirect. You want HTTP::redirect {http://www.site.com/page1}
2. If however you are just trying to pass traffic unencrypted to a back end server then you don't need to do this at all. Just set the pool to be the http servers and make sure server ssl is set to none in the VIP configuration.
3. Use a HTTP class for this, its designed for the job. Note that a VIP must still be configured to answer on port 443 to handle the incoming HTTPS requests
See this article, apply in reverse... http://support.f5.com/kb/en-us/solutions/public/7000/100/sol7125.html?sr=15854582
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