Показать полную графическую версию : Помоги с настройкой апача
Filariel
21-08-2006, 15:39
У меня проблема я настроил апач и виртуальный хост
<VirtualHost 192.168.2.60:80>
ServerAdmin franchav@fc.kiev.ua
DocumentRoot /share/primus
ServerName pcard.fc.kiev.ua
ErrorLog /usr/log_httpd/error.log
CustomLog /usr/log_httpd/access.log common
</VirtualHost>
все работает но проблема заключается в том что
ErrorLog /usr/log_httpd/error.log
Пишется нормально , а в CustomLog /usr/log_httpd/access.log common
пишется только слово common
Из за чего это может быть ?
dmitryst
21-08-2006, 16:11
Filariel Операционка какая?
Filariel
21-08-2006, 16:13
линукс ред хат
Еще я заметил что у меня закоментированы вот эти строки
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#LogFormat "%h %l %u %t \"%r\" %>s %b" common
#LogFormat "%{Referer}i -> %U" referer
#LogFormat "%{User-agent}i" agent
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog /usr/local/apache/logs/access_log common
#
# If you would like to have agent and referer logfiles, uncomment the
# following directives.
#
#CustomLog /usr/local/apache/logs/referer_log referer
#CustomLog /usr/local/apache/logs/agent_log agent
Может их надо разкоментировать ?
Filariel, так ясен перец! common это псевдоним формата, который определяется директивой LogFormat, которая у тебя закомментирована. Ты уже догадался наверное, что надо раскоментить строчку #LogFormat "%h %l %u %t \"%r\" %>s %b" common и будут тебе долгие лета бытия... :)
dmitryst
29-08-2006, 12:26
Sham Зачем же так? Лучше раскомментировать #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined - он комбинированный, т.е. пишется, кто, когда и что запрашивал, плюс юзер-агент (браузер) и реферер (по какой ссылке пришел).
dmitryst, согласен, но я просто вопрос внимательно читал... :)
И тогда уж и в CustomLog придется писать combined а не common. Плюс к этому при желании можно еще че-нить свое замутить :)
Вообще здесь хозяин-барин... что ему нужно видеть, то и сделает... у каждого свои тараканы... :)
dmitryst
29-08-2006, 17:21
Sham Ага, угу, ждем ответа "хозяин-барин" -а :)
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.