Adding a Port 80 Redirect

A port 80 redirect can be added for a HTTPS Virtual Service by following the steps below in the LoadMaster Web User Interface (WUI):

  1. In the main menu, select Virtual Services > View/Modify Services.

  2. Click Modify on the relevant HTTPS service for port 443.

  3. Expand the Advanced Properties section.

  4. Click Add HTTP Redirector.

This will redirect traffic received on port 80 to the HTTPS 443 Virtual Services running on the LoadMaster.

Note: You will not be able to add the redirect if you already have a port 80 VS set up on the same virtual address.

Was this article helpful?

1 out of 2 found this helpful

Comments

Avatar
i.networks.ebuyer

what about if I want to cancel this option ?

Avatar
Justin Federico

@i.networks.ebuyer

The Add HTTP Redirector option creates a new port 80 virtual service. You would need to delete the port 80 service or add a real sever to the port 80 service. Adding an RS the port 80 service would change the status from "Redirect" and it would be able serve client connections on that port.

Avatar
parag.bharne

If i want to redirect it to particular port then what i will do
request coming from 8080 and i will be redirected it to the 8444 (https://%s%h)
I have tried this https://%s:8444%h

Avatar
Andres Garcia de Alba

Hello,

First I want to note that 'Add a Port 80 Redirector VS' is only available if the VS is on port 443.
If the VS is created on port 8444, then the Redirector will have to be created manually. (not a hard task to do)

Also, %h represents the the value which is contained in the Host header that is sent by the client.
The %s represents the URI of the client's request.

So, this is how you would accomplish what you're trying to do:
Create a new VS with the same IP as your 8444 VS and set the port to 8080.
Set the 'Redirect URL' to https://example.com:8444%s

The reason you have to manually type in the host name is because the host name contains the port attached to it. (at least it did for me in my testing).

Edited by Andres Garcia de Alba
Avatar
parag.bharne

Not Working in my case whatever u suggested.

when I enter example.com:8080 then URL get vanished .
redirect URL I put is https://:8444%s

I redirect my 8080 requests to 8444 over SSL, and 8444 may VS to another real server

Avatar
Andres Garcia de Alba

Looks like there was a typo in my response...should read as:

Set the 'Redirect URL' to https://example.com:8444%s

Avatar
parag.bharne

In my case i am using subdomains, i have multiple subdomains so please told mi url in format of https://%h%S

Avatar
parag.bharne

redirect urls which accepts all subdomains in case i enter http//:alpha.example.com:8080 to https://alpha.example.com:8444

for all subdomains

Avatar
parag.bharne

HI,

In My case i used it for multiple subdomains

e.g : dev.example.com:80 --> https://dev.example.com
qa.example.com:80 ---> https://dev.example.com

dev.example.com
dev.example.com
backend ip of both subdomains will be same .

In My case i used it for multiple subdomains. i used redirect url https:%h%s

e.g : dev.example.com:8080 --> https://dev.example.com:8444
qa.example.com:8080 ---> https://dev.example.com:8444

dev.example.com
dev.example.com
backend ip of both subdomains will be same .i used redirect url https://:8444%s

What is the correct redirect url for the port 8080, or it may be doing by another way.