Welcome! Log In Create A New Profile

Advanced

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

March 27, 2010 03:02AM
Игорь, все работает если настроить следующим образом
location /999/ {
more_clear_headers 'Cache-control';
more_clear_headers 'Expires';
add_header Cache-control 'no-store,no-cache,must-revalidate';
add_header Expires "Wed, 28 Oct 2009 06:45:35 GMT";
if ($request_uri ~* ^/999/(.*site.ru)/(.*)$ ){
proxy_pass http://$1/$2;
break;
}

}

Почему так я к сожалению не могу понять.

Выходит, что через location что-то не срабатывает, а через if и $request_uri работает.
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: 308
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