[olug] apache logging - here's the conf
thelarsons3 at cox.net
thelarsons3 at cox.net
Thu May 6 16:17:42 UTC 2004
OK, here is the conf, minus all the comment junk. Hopeflly the line wraps don't make it illegible.
Listen 0.0.0.0:80
Listen [::]:80
UserDir public_html
Options IncludesNoExec FollowSymLinks MultiViews
DirectoryIndex index.jsp index.shtml index.html
#ServerRoot /usr/local/apache2
#ErrorLog logs/error_log
#TypesConfig conf/mime.types
#PIDFile logs/httpd.pid
<IfModule !mpm_winnt.c>
<IfModule !mpm_netware.c>
User webuser
Group webgroup
</IfModule>
</IfModule>
ServerName woodstock.christtrek.org
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
CustomLog logs/access.log combined
AddOutputFilter INCLUDES .shtml
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster at christtrek.org
DocumentRoot /home/websites/christtrek.org
ServerName private.test.server
ErrorLog "|/usr/local/apache2/bin/rotatelogs /home/websites/logs/christtrek.org/error.log%Y%m%d 2629800"
CustomLog "|/usr/local/apache2/bin/rotatelogs /home/websites/logs/christtrek.org/access.log%Y%m%d 604800" combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster at cpne.org
DocumentRoot /home/websites/cpne.org
ServerName nonpublic.test.server
ErrorLog "|/usr/local/apache2/bin/rotatelogs /home/websites/logs/cpne.org/error.log%Y%m%d 2629800"
CustomLog "|/usr/local/apache2/bin/rotatelogs /home/websites/logs/cpne.org/access.log%Y%m%d 604800" combined
</VirtualHost>
--
Tim & Alethea
More information about the OLUG
mailing list