July 22, 2011 03:44PM
On Fri, Jul 22, 2011 at 7:11 AM, Benz Chandra <benzchandra91@gmail.com> wrote:
> Hello.. i'm bew in here, first i'm sorry for my bad english and wrong place
> for posting.
>
> y problem. I have a server which is installed varnish and nginx as proxy
> site and serve static pages. It run smooth, all can work together, apache
> for serving dynamic pages, varnish cache from apache, and nginx as proxy.
> Now the problem, when i upload something like attachment on my web email, it
> show Bad Gateway 502.
> so weird, i upload smaller file arround 100kb, show bad gateway too..
> i check the buffer and increase it, but it didn;t solve this problem..
>
> i get an error from vhost-log nginx.
> recv() failed (104: Connection reset by peer) while reading response header
> from upstream.
>
> Any clue about this? i really really appreciate who help me out this
> problem.

Does it work without varnish?

You need to use pipe() on varnish for uploads; make sure you check
your timeout setting.

Default pipe timeout is 60 seconds, which might not be long enough.

Stefan


>
> Thanks.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>

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

Help, Bad gateway 502 varnish + nginx upload file

Benz Chandra July 22, 2011 07:12AM

Re: Help, Bad gateway 502 varnish + nginx upload file

stefancaunter July 22, 2011 03:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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