Enforcing all website traffic to be HTTPS
Web servers sometimes redirect browsers to an HTTP port, even if the original request was HTTPS encrypted.
In the WebMux farm setup, enable “tag SSL–terminated HTTP requests.” This will add the MIME header “X-WebMux-SSL-termination:true” to decrypted traffic.
This MIME header is sent to the real server as an indication that the original connection was using HTTPS. You will need to write a script on your server that will properly process that information so that it will not try to redirect the connection back to HTTP.
You may also force all traffic to be HTTPS by rewriting the URL. Modify the Apache httpd.conf file by:
If you use the Microsoft IIS 6 server, you can avoid checking and rewriting each URL:
- Open the IIS MMC tool and select properties for the site.
- Go to the directory security tag.
- In the secure communications, click the edit button at the bottom.
Check the required secure channel option.
- Go to the custom error tab to select 403;4 error and setup response “Redirect(“https://my.site.com/my-error-msg.html”).
If you use the Microsoft IIS 7 server, follow these steps, to require the Secure Sockets Layer:
- Open IIS Manager and navigate to the level you want to manage
- In the Features view, double-click SSL Settings
- Select “Require SSL”
- In the Actions pane, click Apply
If you wish to rewrite the URL from IIS 7, you will have to download the module separately from the Microsoft website.