Welcome! Log In Create A New Profile

Advanced

Re: NGINX load balancing - Proxy

Francis Daly
February 15, 2022 09:18AM
On Tue, Feb 15, 2022 at 10:29:50AM -0300, Carlos Renato wrote:

Hi there,

> My file is like this.

Untested by me, but I have edited this to now resemble what I think
you want...

> upstream webgateway {
> server 192.168.239.151:9090;
> server 192.168.239.152:9090;
> }
>
> server {
> listen 9191;
> proxy_pass webgateway;
> }

....that is, keep your upstream{} but remove the keepalive; adjust your
server{} to just have "listen" and a different "proxy_pass"; and put
the whole thing inside "stream{}" not "http{}".

> I'm able to open HTTP requests in the client's browser.
> The problem is being the HTTPS requests.
> Is there any way for NGINX to receive the traffic and forward it (balanced)
> to the proxy servers?
> A simpler way. That way I could include the Web Gateway certificate in the
> Windows client.

If I have understood correctly what you are trying to do, the notes at
https://docs.nginx.com/nginx/admin-guide/load-balancer/tcp-udp-load-balancer/
look relevant. That expands on what is at
http://nginx.org/en/docs/stream/ngx_stream_core_module.html.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
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: 225
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