ПРОЕКТЫ 


  АРХИВ 


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]

FW: "limit_except" directive duplicate


  • To: <nginx-ru@xxxxxxxxx>
  • Subject: FW: "limit_except" directive duplicate
  • From: Анатолий Шарифулин <subscribe@xxxxxxxxxx>
  • Date: Thu, 15 Nov 2007 13:47:28 +0300
  • Content-language: ru
  • Thread-index: Acg3Zf+NsSUCZZfOTcShF38mVH8sBwAdaD0wBBndqUAIM5KiUA==

Спасибо и за время тоже J

 

Возникла новая проблема:

 

                               location / {

                                               set  $lang  ru;

                                               if ($http_cookie ~* "lang=([^;]+)(?:;|$)") {

                                                               set  $lang  $1;

                                               }

                                               root  /?/data/$lang/;

                                              

                                               limit_except  HEAD GET POST {

                                                               allow  ?;

                                                               deny   all;

                                               }

                                               ?

                               }

 

В логах следующее:

 

2007/11/15 13:40:01 [warn] 5310#0: *7 using uninitialized "lang" variable, ?

2007/11/15 13:40:01 [error] 5310#0: *7 stat() "/? /data//video/" failed (2: No such file or directory), ?

2007/11/15 13:40:02 [crit] 5310#0: *7 rename() "/?/data//video/" failed (20: Not a directory) while reading upstream, ?

 

Т.е. переменная $lang не определенна, только без limit_except все работает, а с ограничением ошибка!

 

 

 



 




Copyright © Lexa Software, 1996-2009.