Welcome! Log In Create A New Profile

Advanced

NGINX load balancing - Proxy

February 14, 2022 09:14PM
Hey guys,

Can someone help me? I'm using NGINX to direct connections to two Proxy
servers.

I did a simple setup.

upstream webgateway {
server 192.168.239.151:9090;
server 192.168.239.152:9090;
}

server {
listen 81;
server_name proxy.lab.local;

location / {
proxy_pass http://webgateway;
}
}

NGINX is listening on port 81.

If I configure the proxy IP in the browser, the client "goes out" to the
Internet.

Browser:
192.168.239.151:9090 or 192.168.239.152:9090 - Its Ok!

If I configure the NGINX IP in the browser, the client "does not go out" to
the internet.

Browser:
192.168.239.151:81 - No!

The packet even arrives at the proxy, but the browser tries to load "
http://webgateway.com"

Can someone help me? Thanks.

--
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

NGINX load balancing - Proxy

crenatovb February 14, 2022 09:14PM

Re: NGINX load balancing - Proxy

Sergey A. Osokin February 14, 2022 10:56PM

Re: NGINX load balancing - Proxy

crenatovb February 15, 2022 06:44AM

Re: NGINX load balancing - Proxy

Francis Daly February 15, 2022 08:08AM

Re: NGINX load balancing - Proxy

crenatovb February 15, 2022 08:34AM

Re: NGINX load balancing - Proxy

Francis Daly February 15, 2022 09:18AM

Re: NGINX load balancing - Proxy

crenatovb February 15, 2022 10:18AM

Re: NGINX load balancing - Proxy

jvybihal February 15, 2022 10:28AM

Re: NGINX load balancing - Proxy

crenatovb February 15, 2022 10:36AM

Re: NGINX load balancing - Proxy

Francis Daly February 15, 2022 11:52AM

Re: NGINX load balancing - Proxy

crenatovb February 16, 2022 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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