Welcome! Log In Create A New Profile


Load balance error - too many redirects

Posted by armandelli 
Load balance error - too many redirects
November 13, 2019 07:25AM
Hello guys!

I have an NGINX server(free version) for my users and want to make it balance connections to 2 java application servers. However, when I activate load balancing via upstream directive using leastconn I get an error in my browser saying "too many redirects".

The network topology is as follows:
- The server is on AWS and accessed via internet
- The users are on a private network behind a NAT to one public IP address

I am guessing that connections get stuck in a loop due to being persistent and lest connection not treating that.
Is this correct? Or am I missing something in the configuration?

Just fyi, if I configure the load balance for ip_hash, the error goes away, but since the source IP is the same, it does not have any practical effects on balancing the connections.

Thanks a lot!

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready