Redirect Traffic From HTTP to HTTPS

To redirect from HTTP to HTTPS, follow the steps below in the LoadMaster Web User Interface (WUI):

  1. Create a Virtual Service on the IP address you use for HTTPS on port 80. This service will act as a redirector and does not need Real Servers.
  2. Once created, on the Virtual Service modify screen, expand the Advanced Properties section.
  3. In the Not Available Redirection Handling section, select 302 Found as the Error Code.
  4. Enter the URL to redirect to in the Redirect URL text box. Click Set Redirect URL. You may use the wildcards %h and %s to represent the requested hostname and Uniform Resource Identifier (URI) respectively.

Here are some examples:

Redirect URL: https://%h%s
http://example.com/path/to/file.ext -> https://example.com/path/to/file.ext

Redirect URL: https://%h
http://example.com/path/to/file.ext -> https://example.com

Redirect URL: https://example.com/redirect/path
http://example.com/path/to/file.ext -> https://example.com/redirect/path

Was this article helpful?

2 out of 2 found this helpful

Comments

Avatar
jmartinez

Works like a charm. With this we don't need to manage redirection on the IIS server when using enhanced SSL certificates, which have expensive licensing costs. We just intall the SSL Cert on the Kemp LB. regards, Javier Martínez

Avatar
andreas.bahnmann

I noticed that the redirect URL is limited in its characters.
Can you extend this in the next firmware?

Avatar
Derek Kiely

Hi Andreas,

I have created a ticket for your request. Our support team can confirm and assist with a feature request.

Avatar
michael.schindler

My redirect would be
http:\\example.com\specificpath ---> http:\\example1.com\specificpath
The host name is the only thing that changes. would the redirect be:

http://example1%s ?

Avatar
michael.schindler

I had a second question about this. i have just converted a number of sites to https due to the chrome 62 update. i am now getting a constant stream of redirect errors on my port 80 --> 443 redirects. On those services that are on port 80 I realized that I still have the Real server check parameters set to HTTP protocol. I am assuming that it is failing due to the fact that I have removed the real servers. Is it ok to change this setting to "none".

Avatar
michael.schindler

Dec 10 11:10:49 APCOLOLB02 l4d: VS :80(xxxxxxxxxx) Sending Redirect responses due to failed Real Servers

FYI this is a copy of the error I am constantly getting

Avatar
michael.schindler

Okay this is becoming a bit annoying. I set one of me port 80 VS's to none on the Real server parameter checks, and it is still producing the error every 2 minutes. What is really the issue with this is that it is filling up the warning message file with these errors. I have about 20 of these generating errors every 20 minutes. Is there a way to stop these messages.