Welcome! Log In Create A New Profile

Advanced

One NGINX load balancer for two functionnalities

Posted by theirman 
One NGINX load balancer for two functionnalities
July 19, 2019 09:45AM
Hello,
I'm looking for some help on NGINX as a load balancer.

I currently have the attached configuration file which represents production instances. NGINX redirects everything that happens on ports 80 and 443 to my production instances to production.

I would like to add two test instances such as:
www.monserveur.fr:8080 (http) --> www.monserveur.fr:8181 (https)
www.monserveur.fr:8181 (https) --> www.monserveur.fr:31081 or www.monserveur.fr:32081

how can I set this up in NGINX? do I need to create other server sections {} and another upstream session {}

I need your help to move forward.
thanks
thierry
Attachments:
open | download - payara.nginx.conf (1.7 KB)
Re: One NGINX load balancer for two functionnalities
July 23, 2019 05:56PM
Does anyone have any idea how to solve this problem?
Re: One NGINX load balancer for two functionnalities
July 24, 2019 09:26AM
I managed to set up my load-balancer.
Since port 8181 is also used by Payara, I changed it and used port 1443.

For those who are interested, you will find in PJ the new config file :)
Attachments:
open | download - payara.conf (3.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready