Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ngx_http_browser_module
Hello!
On Sat, Mar 05, 2011 at 02:51:12PM +0300, Aleksandr Sytar wrote:
> Имеем на уровне сервер:
>
> modern_browser unlisted;
>
> ancient_browser msie 4.0;
> ancient_browser msie 5.0;
> ancient_browser msie 5.5;
> ancient_browser msie 6.0;
>
> log_format browser '"$http_user_agent" = $ancient_browser =
> $modern_browser';
>
> На уровне сервер регистрируем
>
> access_log /var/log/browser.log browser;
>
> На выходе странные данные:
>
> "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.7.62 Version/11.01" = 1 =
> "Mozilla/5.0 (compatible; YandexImages/3.0; +http://yandex.com/bots)" = 1 =
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13)
> Gecko/20101203 Firefox/3.6.13" = 1 =
> "Mozilla/5.0 (compatible; Googlebot/2.1;
> http://www.google.com/bot.html)" = 1 =
> "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.13)
> Gecko/20101203 Firefox/3.6.13" = 1 =
> "Mozilla/5.0 (compatible; Yahoo! Slurp;
> http://help.yahoo.com/help/us/ysearch/slurp)" = 1 =
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)" = 1 =
> "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0;
> MRSPUTNIK 2, 4, 0, 153; MRA 5.7 (build 03773); SLCC2; .NET CLR
> 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC
> 6.0; .NET4.0C; InfoPath.2; Tablet PC 2.0)" = 1 =
>
> Как так?
http://sysoev.ru/nginx/docs/http/ngx_http_browser_module.html#ancient_browser
Там нет версий, там подстроки. Подстроки "4.0" и "5.0" - во всех
приведённых user-agent'ах присутствуют.
Maxim Dounin
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|