browser_module

Борис Долгов boris at dolgov.name
Sat Jul 19 01:40:58 MSD 2008


Разобрался. Извините за беспокойство.

18 июля 2008 г. 13:19 пользователь Борис Долгов <boris at dolgov.name> написал:

> Добрый день!
>         ancient_browser Googlebot;
>         ancient_browser Yandex;
>         ancient_browser WebAlta;
>         modern_browser unlisted;
>         if($modern_browser)
>         {
>             auth_basic 'Login&Password are 123';
>             auth_basic_user_file /home/path/to/passwd;
>         }
> Хочется, чтобы при посещении сайта гуглем, яндексом или вебальтой ему не
> отображался запрос на аутентификацию.
> Но не получается:
> GET / HTTP/1.1
> Host: server.com
> User-Agent: Yandex/Bot
>
> HTTP/1.1 401 Unauthorized
> Server: nginx/0.7.1
> Date: Fri, 18 Jul 2008 09:14:00 GMT
> Content-Type: text/html
> Content-Length: 194
> Connection: keep-alive
> WWW-Authenticate: Basic realm="Login&Password are 123"
>
> <html>
> <head><title>401 Authorization Required</title></head>
> <body bgcolor="white">
> <center><h1>401 Authorization Required</h1></center>
> <hr><center>nginx/0.7.1</center>
> </body>
> </html>
>
> Что я делаю не так?
> Заранее спасибо.
> --
> С уважением, Борис Долгов.
> icq 77556665
> e-mail boris at dolgov.name
>



-- 
С уважением, Борис Долгов.
icq 77556665
e-mail boris at dolgov.name
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20080719/347ee6d5/attachment.html>


More information about the nginx-ru mailing list