Welcome! Log In Create A New Profile

Advanced

Re: 502 Bad Gateway when downloading file

October 16, 2011 03:36AM
On Sat, Oct 15, 2011 at 7:51 PM, sogi <nginx-forum@nginx.us> wrote:
> 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

how do you change header, and can you please post complete headers
from successful request[s] and from unsuccessful request?

>
> 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.

please post any relevant log entries

When trying it directly through HAPROXY or
> directly through nginx (pointed to one of that apache servers) it is
> working correctly.

we need to see the headers

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

Stefan Caunter

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 242
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