Welcome! Log In Create A New Profile

Advanced

502 Bad Gateway when downloading file

October 15, 2011 07:51PM
Hello all.
I have topology as follows:
client->NGINX->haproxy-> 4xapache servers.

Problem is, that on one page, we have option to download file - it is done through changing header. Resulting header is as follows:
Content-type: application/txt
Content-Length: "xxxxx"
Content-Disposition: attachment; filename="aaa.txt"

I'm getting 502 Bad Gateway, The server returned an invalid or incomplete response error everytime after clicking on link. In logs, there is nothing weird. When trying it directly through HAPROXY or directly through nginx (pointed to one of that apache servers) it is working correctly.

Do you have any idea about how to resolve it? Have anybody experienced something like this?
Many thanks for any reply concerning this.
Subject Author Posted

502 Bad Gateway when downloading file

sogi October 15, 2011 07:51PM

Re: 502 Bad Gateway when downloading file

stefancaunter October 16, 2011 03:36AM

Re: 502 Bad Gateway when downloading file

sogi October 16, 2011 07:24AM

Re: 502 Bad Gateway when downloading file

Maxim Dounin October 16, 2011 08:32AM

Re: 502 Bad Gateway when downloading file

sogi October 16, 2011 10:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready