не работает error_page 503 /503.html;

Андрей Василишин andron at kpi.ua
Fri Mar 20 01:00:50 MSK 2009


>
> Пропробуйте 
>
>     location /503.html {
>         add_header Content-Disposition "";
>         ...
>     }
>
> Это должно убрать из ответа заголовок Content-Disposition, который 
> прилетает из скрипта отдающего X-Accel-Redirect, и судя по всему вызывает 
> подобную реакцию FireFox'а.
>
>   
Сделал такое:
location /503.html {
            add_header Content-Disposition "";
            add_header Content-Type "text/html; charset=UTF-8";
}

В результате в фаерфоксе такое:

Server: nginx/0.7.40
Date: Thu, 19 Mar 2009 21:57:44 GMT
Content-Type: text/html
Content-Length: 15461
Connection: keep-alive
content-disposition: attachment; filename="City_of_Ember_2008_DVDScr.avi"

503 Service Temporarily Unavailable


-- 
WBR, Andrey Vasilishin CDIG1-UANIC, CDIG1-RIPE






More information about the nginx-ru mailing list