Welcome! Log In Create A New Profile

Advanced

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!

Andre.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
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