ngx_http_browser_module

Aleksandr Sytar sytar.alex на gmail.com
Сб Мар 5 14:51:12 MSK 2011


Имеем на уровне сервер:

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 =

Как так?

-- 
Have a nice day



Подробная информация о списке рассылки nginx-ru