ПРОЕКТЫ 


  АРХИВ 


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]

Вопрос по auth_basic.



День добрый.
Почему если есть:

   location / {
       auth_basic            "closed site";
       auth_basic_user_file  /home/htdocs/.ht_passwd;
       index index.pl;
    }

И после идет:

    location /stats {
          auth_basic            "closed site";
        auth_basic_user_file  /home/htdocs/stats/.ht_passwd;
        index index.pl;
        fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_pass    unix:/mnt/md0/nginx-fcgi.sock;
        fastcgi_index    index.pl;
        include  /usr/local/nginx/conf/fastcgi.conf;
    }

То при запросе в /stats проверяет пользователя /home/htdocs/.ht_passwd; и
если нет то отдает

HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.

И в /home/htdocs/stats/.ht_passwd; даже не проверяет ...
Как можно правильно разделить location ?
____________________________
С уважением Max ICQ 71006063




 




Copyright © Lexa Software, 1996-2009.