Configure Apache for Duplicate Logging
I need to configure Apache to create a duplicate access and error log.
I used to be able to do the following but this no longer works:
To make a separate set of log files without messing with these
/var/cpanel/templates/apache2/main.default
/var/cpanel/templates/apache2/main.local
/var/cpanel/templates/apache2/vhost.default
/var/cpanel/templates/apache2/vhost.local
/var/cpanel/templates/apache2/ssl_vhost.default
/var/cpanel/templates/apache2/ssl_vhost.local
STEP 1
Create the file:
pico /usr/local/apache/conf/userdata/extralogs.conf
pico /usr/local/apache/conf/extralogs.conf
STEP 2
Add:
ErrorLog /home/hmwhmw42/public_html/fillspot/errorhmw42.log
CustomLog /home/hmwhmw42/public_html/fillspot/accesshmw42.log "%h %l %u %t \"%r\" %s %b %v \"%{Referer}i\" \"%{User-agent}i\"
STEP 3
Restart Apache.
service httpd restart
-
Hello, Could you verify if this system uses EasyApach 3, or EasyApache 4? Thank you. 0 -
Hello, Could you verify if this system uses EasyApach 3, or EasyApache 4? Thank you.
We are using EasyApache 4.0 -
We are using EasyApache 4.
There's a thread here with a somewhat-related topic: SOLVED - Global Log Let us know if this helps put you on the right path. Thank you.0
Please sign in to leave a comment.
Comments
3 comments