ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error_page в именованном location



Здравствуйте.

Есть конфигурация вида:

server {

       ...

       error_page 418 = @forbid;

       if($forbidden) {
              return 418;
       }

       location @forbid {
              error_page 403 = /403_opera.html;

              if ($opera_trubo) {
                     return 403;
              }

              rewrite ^ http://domain.ru/forbidden.html permanent;
       }

}

Версия 1.0.0.

Отдается стандартная 403 вместо 403_opera.html

Подскажите, пожалуйста, что не так?

2011/12/09 16:43:43 [debug] 27306#0: *2537648734 event timer del: 177: 1323434688174
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 generic phase: 0
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 rewrite phase: 1
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script var
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http map started
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http geo started: 10.0.43.213
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http geo: none
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script var: "none"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http map: "none" "1"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script var: "1"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script if
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http finalize request: 418, "/?" a:1, c:1 2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http special response: 418, "/?"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 test location: "@forbid"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 using location: @forbid "/?"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 rewrite phase: 3
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script var
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http geo started: 10.0.43.213
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http geo: 1
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script var: "1"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http script if
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http finalize request: 403, "/?" a:1, c:2 2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http special response: 403, "/?"
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 http set discard body
2011/12/09 16:43:43 [debug] 27306#0: *2537648734 HTTP/1.1 403 Forbidden
Server: nginx/1.0.0
Date: Fri, 09 Dec 2011 12:43:43 GMT
Content-Type: text/html
Content-Length: 570
Connection: keep-alive

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.