Kemp Support, how can we help?

The latest application delivery knowledge and expertise at your fingertips.

 How to configure 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?
2 out of 3 found this helpful

Comments

Avatar

Przemyslaw Wit

what about if I want to cancel this option ?

0

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.

0

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

0

Avatar

Permanently deleted user

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).

0

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

0

Avatar

Permanently deleted user

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

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

0

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

0

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

0

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.

0

Avatar

Joshua Gibson

Is it possible to configure a SubVS to do HTTPS redirect for say www.domain.com but have another SubVS with a real server for say www.domain.com/directory?

0

Avatar

Bill DeCastro

Hi Joshua,

This is possible. You'll need to create a content rule to match on /^www\.domain\.com/ and /^www\.domain\.com\/directory.*/ This can be done from Rules & Checking > Content Rules. Within the latter rule, ensure that you check "Include Host in URL"

To apply these rules, navigate to Virtual Services > View/Modify Services > modify your desired VS > Real Servers > Add two SubVSs > Advanced Properties > Enable Content Switching > apply your newly created rules to your SubVSs. Please ensure that you apply the /^www\.domain\.com\/directory.*/ rule first.

If you have any other questions, I'd recommend submitting a ticket to nasupport@kemptechnologies.com

0

Avatar

Joshua Gibson

Thanks Bill,

I was able to figure it out last night and I added my steps to the forum post. I did it a little bit different however but got the same result.

https://support.kemptechnologies.com/hc/en-us/community/posts/360043436711-Lets-Encrypt-redirect

0

Avatar

sohaibrummi7

Hi i have followed below steps , Set Port 80 , Give URL as /OWA; but client users facing autodiscover.exe prompt.
https VS already working fine.
In the main menu, select Virtual Services > View/Modify Services.

Click Modify on the relevant HTTPS service for port 443.

Expand the Advanced Properties section.

Click Add HTTP Redirector.

0

Avatar

user

4. Click Add HTTP Redirector.

This option does not exist.  Can you please update your directions in this post to whatever is current?

0

Avatar

Francis Tam

Hi,

What port is your VIP listening on? Is it 443?

Andres did post that if you VIP is not on port 443, that the option does not appear.

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)

Create a new VS on port 80, and configure the advanced properties -> Not Available Redirection Handling -> 302 found.

put the redirect URL to: https://%h%s

Do not add any real servers.

0