VMware Networking Community
btsoh
Enthusiast
Enthusiast
Jump to solution

Load Balancer as reverse proxy

Hello,

I'm new with NSX and i'm not sure on what i have to do to solve my problem.

I just want to use load balancer as a reverse proxy.

We have a simple urt like https://dev.url.com/app1 and https//dev.url.com/app2

These urls need to be sent to one of our server.

https://dev.url.com/app1 need to be sent to 10.1.1.2 on port 6061 and https://dev.url.com/app2 need to be sent to 10.1.1.2 on port 9091

I understand that, in normal case, i have to create an application profile, a pool and a virtual server.

I mean, it works if we only have only 1 app on the destination server.

I don't understand how i can configure more than 1 app on 1 server.

It is needed for us to detect app1, app2, etc... and send it to the correct port number on the destination server...

Do i need to use application rules?

English is not my primarly language and i don't know if i'm clear... :s

Thank you for your help !

Bertrand

PS: we use NSX 6.4.6

0 Kudos
1 Solution

Accepted Solutions
btsoh
Enthusiast
Enthusiast
Jump to solution

Hello,

I found the solution, in the application rules, i simply have to use :

acl app1_url  url_beg /app1

acl app2_url url_beg /app2

use_backend POOL_APP1 if app1_url 

use_backend POOL_APP2 if app2_url

if it can be useful to someone

Bertrand

View solution in original post

0 Kudos
1 Reply
btsoh
Enthusiast
Enthusiast
Jump to solution

Hello,

I found the solution, in the application rules, i simply have to use :

acl app1_url  url_beg /app1

acl app2_url url_beg /app2

use_backend POOL_APP1 if app1_url 

use_backend POOL_APP2 if app2_url

if it can be useful to someone

Bertrand

0 Kudos