Skip to main content
Version: 8.2405.x.x RR

Configuring a setup with a load balancer

Due to failsafeness and/or scaling a load balancer is commonly used. nevisProxy supports IP- and port-based routing as shown in the following example:

All connections to www.server.com on port 443 are directed to the load balancer and then routed to 192.168.4.171 on port 7000 (nevisProxy is running on the machine 192.168.4.171 and is listening on port 7000) and some other nevisProxy instances. The client is therefore connecting to www.server.com on port 443 and does not know anything about the private IP address 192.168.4.171 or the port 7000 on which nevisProxy is listening.

If nevisProxy 3.13.7.0 generates URL-related responses (like a redirect or a login screen), it must not use the port and/or the DNS name or IP address on which it is listening. Otherwise, the client would try to connect to 192.168.4.171 on port 7000.

For this, the DNS name and the port the client is connecting to must be explicitly configured. The configuration for the above described setup looks like this:

<Connector port="443" name="www.server.com" listen="192.168.4.171:7000">

If the client is connecting directly to nevisProxy 3.13.7.0 without a load balancer, the attribute listen is not required.