EasyApache master/custom/global access log
Hello
I have tried to reply on this /var/cpanel/templates/apache2/vhost.local
and then executed: /usr/local/cpanel/scripts/rebuildhttpdconf /scripts/restartsrv_httpd Any suggestions? Thanks Sorry, i forget the link on the mention: [QUOTE]I have read some mention about this
...........
LogFormat "%V %a %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" vcommon
CustomLog /var/log/httpd/vhost-access_log vcommon
and then executed: /usr/local/cpanel/scripts/rebuildhttpdconf /scripts/restartsrv_httpd Any suggestions? Thanks Sorry, i forget the link on the mention: [QUOTE]I have read some mention about this
-
Thank you @
Just on the end of the section, above the existing lines:CustomLog "|/usr/local/cpanel/bin/splitlogs --dir=[% paths.dir_domlogs %] --main=[% wildcard_safe(servername) %] --mainout=[% paths.file_access_log %][% splitlogsextra %]"$
After, rebuild and restart apache. And was just this, only two lines of code. I did not need to use the file: /var/cpanel/templates/apache2/vhost.local I works for both, non-ssl and ssl access.0 -
I forgot to mention, that I have activated the log rotation, using the WHM gui, at Home "Service Configuration "Apache Configuration "Log Rotation WHM automatically recognized the log file at the logs list. 0 -
Here is a Feature Request for those who need: apache master global access log 0
Please sign in to leave a comment.
Comments
4 comments