Apache

Post Reply
Message
Author
Sascha

Apache

#1 Post by Sascha »

Hallo,

kann man einstellen was apache alles logen soll und was nicht ?
Die logs die in /var/log/httpd/* gemacht werden, habe ich mir
schon angeguckt.
Mich würde einfach interessieren, wenn man einstellen kann was Apache alles logen soll, wo man das macht.
Gibt es evtl. ne Gute Online doku dazu.

Danke
Sascha

cerberusger
Posts: 348
Joined: 28. Dec 2000 13:30
Location: Muenchen

Re: Apache

#2 Post by cerberusger »

diese zeilen in der httpd.conf (oder einer der anderen beiden) legen das log-format fest:

ErrorLog /usr/local/apache_ssl/logs/error_log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{User-Agent}i\"" cerberus
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /usr/local/apache_ssl/logs/access_log common

damit kannst auch einstellen, was geloggt wird. genaue doku dazu hab ich nur in meiner apache-bible, und werde sie nicht abtippen *g*

aber schau mal

a) in der apache doku
b) bei google
c) im buchladen

cheers,
dev0
Linux is a wigwam - no windows, no gates, apache inside <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">

Post Reply