<div dir="ltr">You should check your upstream logs to see why it is closing connections or crashing.</div><br><div class="gmail_quote"><div dir="ltr">On Tue, May 15, 2018 at 6:22 PM Ricky Gutierrez <<a href="mailto:xserverlinux@gmail.com">xserverlinux@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Any help? </div><br><div class="gmail_quote"><div dir="ltr">El lun., 14 may. 2018 20:02, Ricky Gutierrez <<a href="mailto:xserverlinux@gmail.com" target="_blank">xserverlinux@gmail.com</a>> escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hello list, I have a reverse proxy with nginx front end and I have the<br>
backend with nginx some applications in php7 with mariadb, reviewing<br>
the log I see a lot of errors like this:<br>
<br>
2018/05/09 17:44:58 [error] 14633#14633: *1761 connect() failed (111:<br>
Connection refused) while connecting to upstream, client:<br>
186.77.203.203, server: <a href="http://web.mydomain.com" rel="noreferrer noreferrer" target="_blank">web.mydomain.com</a>, request: "GET<br>
/imagenes/slide7.jpg HTTP/2.0", upstream:<br>
"<a href="http://192.168.11.7:80/imagenes/slide7.jpg" rel="noreferrer noreferrer" target="_blank">http://192.168.11.7:80/imagenes/slide7.jpg</a>", host:<br>
"<a href="http://www.mydomain.com" rel="noreferrer noreferrer" target="_blank">www.mydomain.com</a>", referrer: "<a href="https://www.mydomain.com/" rel="noreferrer noreferrer" target="_blank">https://www.mydomain.com/</a>"<br>
<br>
2018/05/09 17:45:09 [error] 14633#14633: *1761 connect() failed (111:<br>
Connection refused) while connecting to upstream, client:<br>
186.77.203.203, server: <a href="http://web.mydomain.com" rel="noreferrer noreferrer" target="_blank">web.mydomain.com</a>, request: "GET<br>
/imagenes/slide8.jpg HTTP/2.0", upstream:<br>
"<a href="http://192.168.11.7:80/imagenes/slide8.jpg" rel="noreferrer noreferrer" target="_blank">http://192.168.11.7:80/imagenes/slide8.jpg</a>", host:<br>
"<a href="http://www.mydomain.com" rel="noreferrer noreferrer" target="_blank">www.mydomain.com</a>", referrer: "<a href="https://www.mydomain.com/" rel="noreferrer noreferrer" target="_blank">https://www.mydomain.com/</a>"<br>
<br>
2018/05/09 17:45:12 [error] 14633#14633: *1761 upstream prematurely<br>
closed connection while reading response header from upstream, client:<br>
186.77.203.203, server: <a href="http://web.mydomain.com" rel="noreferrer noreferrer" target="_blank">web.mydomain.com</a>, request: "GET<br>
/imagenes/slide6.jpg HTTP/2.0", upstream:<br>
"<a href="http://192.168.11.7:80/imagenes/slide6.jpg" rel="noreferrer noreferrer" target="_blank">http://192.168.11.7:80/imagenes/slide6.jpg</a>", host:<br>
"<a href="http://www.mydomain.com" rel="noreferrer noreferrer" target="_blank">www.mydomain.com</a>", referrer: "<a href="https://www.mydomain.com/" rel="noreferrer noreferrer" target="_blank">https://www.mydomain.com/</a>"<br>
<br>
I made a change according to this link on github, but I can not remove the error<br>
<br>
<a href="https://github.com/owncloud/client/issues/5706" rel="noreferrer noreferrer" target="_blank">https://github.com/owncloud/client/issues/5706</a><br>
<br>
my config :<br>
<br>
proxy_http_version 1.1;<br>
proxy_set_header Connection "";<br>
proxy_set_header X-Real-IP $remote_addr;<br>
proxy_set_header Host $host;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_connect_timeout 900s;<br>
proxy_send_timeout 900s;<br>
proxy_read_timeout 900s;<br>
proxy_buffer_size 64k;<br>
proxy_buffers 16 32k;<br>
proxy_busy_buffers_size 64k;<br>
proxy_redirect off;<br>
proxy_request_buffering off;<br>
proxy_buffering off;<br>
proxy_pass <a href="http://backend1" rel="noreferrer noreferrer" target="_blank">http://backend1</a>;<br>
<br>
regardss<br>
<br>
-- <br>
rickygm<br>
<br>
<a href="http://gnuforever.homelinux.com" rel="noreferrer noreferrer" target="_blank">http://gnuforever.homelinux.com</a><br>
</blockquote></div>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></blockquote></div>