Configuring CustomLog with Same, Individual Access Log

gotdoge

Registered
Feb 5, 2021
1
0
1
US
cPanel Access Level
Root Administrator
Is there any way to configure CustomLog so that Apache can continue to write everything to each domains' individual log file? If so, can someone just point me in the right direction to configure that? I know you can write them a single log file with:

Code:
SetEnvIf Request_URI "\.(jpg|xml|png|gif|ico|js|css|swf|js?.|css?.)$" var
CustomLog /var/log/apache2/custom.log combined Env=!var
Just confused on how to achieve this with cPanel. Would this require edits to the EA4 templates in /var/cpanel/template_compiles/var/cpanel/templates/apache2_4/?
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
5,421
695
313
cPanel Access Level
Root Administrator
Hey there! That's exactly correct - for that change you'd need to use custom templates as the log format is coded in those directly. You can find more details on that here: