Re: NGINX load balancing - Proxy

2022-02-16 Thread Carlos Renato
Hi Francis, thanks you! Em ter., 15 de fev. de 2022 às 13:49, Francis Daly escreveu: > On Tue, Feb 15, 2022 at 12:31:06PM -0300, Carlos Renato wrote: > > Hi there, > > > This what I get when trying to start NGINX with the simplified file. > > > > [root@proxy conf.d]# cat webgateway.conf > > upst

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
On Tue, Feb 15, 2022 at 12:31:06PM -0300, Carlos Renato wrote: Hi there, > This what I get when trying to start NGINX with the simplified file. > > [root@proxy conf.d]# cat webgateway.conf > upstream webgateway { >server 192.168.239.151:9090; >server 192.168.239.152:9090; > } > > server

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi, Josef This what I get when trying to start NGINX with the simplified file. [root@proxy conf.d]# cat webgateway.conf upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; } server { listen 9191; proxy_pass webgateway; } } [root@proxy conf.d]# nginx -t n

Re: NGINX load balancing - Proxy

2022-02-15 Thread Josef Vybíhal
Seems to me, that you are not using stream{} module as noted by Francis, and you are still putting server block to http{}. If not, post nginx -T J. On Tue, Feb 15, 2022 at 4:17 PM Carlos Renato wrote: > > Hi Francis, > Thanks for the reply and willingness to help me. > > [root@proxy conf.d]# cat

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi Francis, Thanks for the reply and willingness to help me. [root@proxy conf.d]# cat teste.conf upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; } server { listen 9191; proxy_pass webgateway; } [root@proxy conf.d]# I cannot start NGINX. Feb 15 01:

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
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 { >lis

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hi Francis, Thanks for the reply. My file is like this. upstream webgateway { server 192.168.239.151:9090; server 192.168.239.152:9090; keepalive 10; } server { listen 9191; server_name proxy.lab.local; location / { proxy_set_header Host $host; proxy_set_heade

Re: NGINX load balancing - Proxy

2022-02-15 Thread Francis Daly
On Tue, Feb 15, 2022 at 08:38:07AM -0300, Carlos Renato wrote: Hi there, > Hello, I would like to use NGINX to balance traffic between two McAfee > (standalone) proxy. nginx as a server will listen for http or https requests; it does not "do" http-proxy requests. (As in: it is not a http (forwar

Re: NGINX load balancing - Proxy

2022-02-15 Thread Carlos Renato
Hello, I would like to use NGINX to balance traffic between two McAfee (standalone) proxy. I've made some advances and I'm able to open an HTTP page. Now, I need the client to open an HTTPS request. Em ter., 15 de fev. de 2022 às 00:54, Sergey A. Osokin escreveu: > Hi Carlos, > > hope you're d

Re: NGINX load balancing - Proxy

2022-02-14 Thread Sergey A. Osokin
Hi Carlos, hope you're doing well. On Mon, Feb 14, 2022 at 11:08:53PM -0300, Carlos Renato wrote: > 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

NGINX load balancing - Proxy

2022-02-14 Thread Carlos Renato
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 h