Welcome! Log In Create A New Profile

Advanced

if в location для access_log.

Serg Senko
April 06, 2011 07:58AM
День добрый

Пытаюсь создать отдельные логи для ботов.
nginx version: nginx/0.8.53

В location'ы прописываю

if ($http_user_agent ~ "^(YandexBot|Googlebot)") {
access_log /usr/local/nginx/logs/seo.log;
}


В http {

Прописан общий лог

access_log /usr/local/nginx/logs/access.log;


Логи SEO остаются пустыми, хотя в общем логе вижу ботов которых и пытаюсь
отловить и засунуть в отдельный лог.

чем проблема может быть ?

--
ttyv0 "/usr/libexec/gmail Pc" webcons on secure
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

if в location для access_log.

Serg Senko April 06, 2011 07:58AM

Re: if в location для access_log.

Igor Sysoev April 06, 2011 08:04AM

Re: if в location для access_log.

Serg Senko April 06, 2011 08:24AM

Re: if в location для access_log.

Serg Senko April 07, 2011 07:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready