Welcome! Log In Create A New Profile

Advanced

Re: reverse proxy: не передается header Content-Disposition

March 26, 2010 04:16PM
On Thu, Mar 25, 2010 at 10:14:35AM -0400, unclead wrote:

> Здравствуйте!
>
> На nginx настроено следующее проксирование
> location ~* /999/(.*site.ru)/(.*)$ {
> proxy_pass_header Content-Type;
> proxy_pass_header Content-Disposition;
> proxy_pass_header Content-Length;
> proxy_pass http://$1/$2;
> }
>
> на стороне site.ru осуществляется отдача контента через header Content-Disposition
> например,
> Content-Disposition: inline;filename="smeshariki__-_41_moroza.mp4"
>
> В случае проксирования описанного выше данный хидер не передается и контнет не отдается.
> В то время если сделать проксирование вида
>
> location /999/ {
> proxy_pass_header Content-Type;
> proxy_pass_header Content-Disposition;
> proxy_pass_header Content-Length;
> proxy_pass http://site.ru/;
> }
> все работает.
>
> Подскажите, если кто-то сталкивался с такой проблемой можно ли ее обойти.

Эти заголовки должны передаваться без специального указания.


--
Игорь Сысоев
http://sysoev.ru

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

reverse proxy: не передается header Content-Disposition

unclead March 25, 2010 06:00AM

Re: reverse proxy: не передается header Content-Disposition

Igor Sysoev March 26, 2010 04:16PM

Re: reverse proxy: не передается header Content-Disposition

unclead March 27, 2010 03:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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