VMware Networking Community
ChrisOk
Enthusiast
Enthusiast
Jump to solution

[NSX-T loadbalancer] HTTP => HTTPS redirect?

Hello,

if I had a nginx setup I would simply do:

 

 

http {
    server {
        listen       80;
        return 301 https://*.*.*.*:443$request_uri;
    }
}

 

 

within nginx.conf for redirecting HTTP incoming to the LB to the same LB itself with HTTPs port.

How can I achieve this on a NSX-T 3.1 loadbalancer? Has anyone tried it, yet?

 

0 Kudos
1 Solution

Accepted Solutions
p0wertje
Hot Shot
Hot Shot
Jump to solution

Hi,

 

I think you can just do it in the http profile.

p0wertje_0-1620052405755.png

When testing on a port 80, i get a 301 redirect.

p0wertje_1-1620052496351.png

 

 

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved

View solution in original post

1 Reply
p0wertje
Hot Shot
Hot Shot
Jump to solution

Hi,

 

I think you can just do it in the http profile.

p0wertje_0-1620052405755.png

When testing on a port 80, i get a 301 redirect.

p0wertje_1-1620052496351.png

 

 

Cheers,
p0wertje | VCIX6-NV | JNCIS-ENT | vExpert
Please kudo helpful posts and mark the thread as solved if solved