Форум русскоязычного сообщества Ubuntu


Хотите сделать посильный вклад в развитие Ubuntu и русскоязычного сообщества?
Помогите нам с документацией!

Автор Тема: Apache CustomLog  (Прочитано 523 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн lacostewin

  • Автор темы
  • Новичок
  • *
  • Сообщений: 28
    • Просмотр профиля
Apache CustomLog
« : 21 Ноября 2016, 19:16:24 »
ErrorLog ${APACHE_LOG_DIR}/error-nef.log
SetEnvIf User-agent "bot|baidu" botlog
SetEnvIf User-agent "bot|bingbot" botlog
SetEnvIf User-agent "bot|AhrefsBot" botlog
SetEnvIf User-agent "bot|YandexBot" botlog
SetEnvIf User-agent "bot|Googlebot" botlog
SetEnvIf User-agent "bot|MJ12bot" botlog
SetEnvIf User-agent "bot|Yahoo" botlog
SetEnvIf User-agent "bot|Mediapartners-Google" botlog
SetEnvIf User-agent "bot|Favicon" botlog
SetEnvIf Request_URI "^/cacti/*" cacti

CustomLog ${APACHE_LOG_DIR}/access-nef.log combined env=[!cacti,!botlog]
CustomLog ${APACHE_LOG_DIR}/access-cacti.log combined env=cacti
CustomLog ${APACHE_LOG_DIR}/bot-nef.log combined env=botlog

Ребята, подскажите, почему не пишется в access-nef.log всё, что не аргументы cacti и botlog? В access-cacti.log и bot-nef.log пишется всё правильно.

 

Страница сгенерирована за 0.015 секунд. Запросов: 22.