Ricky Gutierrez
May 14, 2018 10:04PM
hello list, I have a reverse proxy with nginx front end and I have the
backend with nginx some applications in php7 with mariadb, reviewing
the log I see a lot of errors like this:

2018/05/09 17:44:58 [error] 14633#14633: *1761 connect() failed (111:
Connection refused) while connecting to upstream, client:
186.77.203.203, server: web.mydomain.com, request: "GET
/imagenes/slide7.jpg HTTP/2.0", upstream:
"http://192.168.11.7:80/imagenes/slide7.jpg", host:
"www.mydomain.com", referrer: "https://www.mydomain.com/"

2018/05/09 17:45:09 [error] 14633#14633: *1761 connect() failed (111:
Connection refused) while connecting to upstream, client:
186.77.203.203, server: web.mydomain.com, request: "GET
/imagenes/slide8.jpg HTTP/2.0", upstream:
"http://192.168.11.7:80/imagenes/slide8.jpg", host:
"www.mydomain.com", referrer: "https://www.mydomain.com/"

2018/05/09 17:45:12 [error] 14633#14633: *1761 upstream prematurely
closed connection while reading response header from upstream, client:
186.77.203.203, server: web.mydomain.com, request: "GET
/imagenes/slide6.jpg HTTP/2.0", upstream:
"http://192.168.11.7:80/imagenes/slide6.jpg", host:
"www.mydomain.com", referrer: "https://www.mydomain.com/"

I made a change according to this link on github, but I can not remove the error

https://github.com/owncloud/client/issues/5706

my config :

proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 900s;
proxy_send_timeout 900s;
proxy_read_timeout 900s;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_redirect off;
proxy_request_buffering off;
proxy_buffering off;
proxy_pass http://backend1;

regardss

--
rickygm

http://gnuforever.homelinux.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Connection refused

Ricky Gutierrez May 14, 2018 10:04PM

Re: Connection refused

Ricky Gutierrez May 15, 2018 12:24PM

Re: Connection refused

Richard Stanway via nginx May 17, 2018 09:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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