VMware Networking Community
MohamedRafee
Contributor
Contributor

NSX-LB - Link redirection

Hi

I would like to know if we can re-direct an Link using NSX LB.

For ex:- If any user types http://www.ABC.com can I re-direct the link to https://www.xyc.com using NSX-LB Application rules.

This is not an Http to Https re-direction requirement.

Tags (1)
0 Kudos
1 Reply
sk84
Expert
Expert

The NSX load balancer is nothing else than HAProxy. So in the Application Rules pretty much all configurations work that can also be done with HAProxy.

So yes, that should work depending on what you are doing exactly.

In your example www.abc.com must point to the Virtual Server IP of the LB and for this Virtual Server you use an application rule with the following content:

redirect location https://www.xyc.com

This should work. You can also configure conditions for the redirect or what HTTP status code should be used, etc.

Here are a few examples:

Redirecting HTTP Requests | ALOHA 9.5

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.
0 Kudos