Forum: NGINX who can help me ?

Posted by refercon (Guest)
on 2013-01-11 14:14
(Received via mailing list)
The nginx make proxy server...

  Some time was ok,some time :
[error] 18528#0: *50881 recv() failed (104: Connection reset by peer) 
while
reading response header from upstream, client: 222.178.73.129, server:
oa.owenschool.com, request: "GET / HTTP/1.1", upstream:
"http://10.2.4.33:80/", host: "oa.owens.com.cn"

Why?  But some time is ok, some time is error....

The proxy config file:

 server {
        listen 80;
        server_name oa.owens.com.cn;
        location / {
              root   html;
              index  index.html index.htm;
                proxy_pass http://10.2.4.11;
                proxy_set_header   Host $host;
    proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for;
                proxy_set_header Accept-Encoding "";
    proxy_connect_timeout   60;
                proxy_send_timeout      60;
                proxy_read_timeout      60;
                proxy_buffer_size       512k;
                proxy_buffers           8 512k;
                proxy_busy_buffers_size 512k;
        }


        location = /50x.html {
            root   html;
        }


    }

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,234954,234954#msg-234954
Posted by Maxim Dounin (Guest)
on 2013-01-11 14:24
(Received via mailing list)
Hello!

On Fri, Jan 11, 2013 at 08:13:37AM -0500, refercon wrote:

> The nginx make proxy server...
>
>   Some time was ok,some time :
> [error] 18528#0: *50881 recv() failed (104: Connection reset by peer) while
> reading response header from upstream, client: 222.178.73.129, server:
> oa.owenschool.com, request: "GET / HTTP/1.1", upstream:
> "http://10.2.4.33:80/", host: "oa.owens.com.cn"
>
> Why?  But some time is ok, some time is error....

You have to check what goes on on your backend server to find out
why it resets the connection.

--
Maxim Dounin
http://nginx.com/support.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.