Monday, February 9, 2009

Apache log setting

LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common

<virtualhost>
ServerName xxxx
ServerAlias xxxx.com
DocumentRoot /home/www/xxxx.com/web
AddType application/x-httpd-php .php
<directory>
AllowOverride All
Order allow,deny
Allow from all
</directory>
RewriteLog /home/www/xxxx.com/log/xxxx.com_rewrite_log
RewriteLogLevel 3
ErrorLog /home/www/xxxx.com/log/xxxx.com_error_log
CustomLog /home/www/xxxx.com/log/xxxx.com_access_log common
</virtualhost>


Reference
http://httpd.apache.org/docs/1.3/logs.html

No comments:

Post a Comment