ПРОЕКТЫ 


  АРХИВ 


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]

Re: browser_module



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

18 июля 2008 г. 13:19 пользователь Борис Долгов <boris@xxxxxxxxxxx> написал:
Добрый день!
        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@xxxxxxxxxxx



--
С уважением, Борис Долгов.
icq 77556665
e-mail boris@xxxxxxxxxxx


 




Copyright © Lexa Software, 1996-2009.