Geeks With Blogs
Nicholas Zurfluh blog

The purpose of the iRule is to identify the destination port of an incoming HTTP request and respond to the client with:

HTTP/1.0 302 Found
Location: https://www.sitename.com
Connection/index.htm
Connection: close

Here is the rule: 

rule https_only  {

    if  (server_port equals 80)  {

         redirect to “https://%h/%u”

    }

       else  {

           discard

        }

Posted on Thursday, September 9, 2004 5:49 PM F5 networks | Back to top


Comments on this post: Big-IP ver. 4.5.9 iRule: Port 80 redirect to https

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Nicholas Zurfluh | Powered by: GeeksWithBlogs.net