Disable Domlogs
How to disable domlogs for all accounts and include ssl logs?
I put this in my global virtualhost, but doesnt work
#CustomLog /usr/local/apache/domlogs/domain.com combined
#CustomLog /usr/local/apache/domlogs/domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
-
Those lines need to be commented out in the apache template at /var/cpanel/templates/apache2_4/ and once their commented out you should rebuild the apache configuration and then restart apache 0 -
I just came across this and would like to turn domlogs off as well. I edited : /var/cpanel/templates/apache2_4/ssl_vhost.default # CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]-ssl_log combined # TransferLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]-ssl_log # CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]-bytes_log "%{%s}t %I .\n%{%s}t %O ." /var/cpanel/templates/apache2_4/vhost.default # CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combined # TransferLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] # CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]-bytes_log "%{%s}t %I .\n%{%s}t %O ." To rebuild the httpd.conf file, run the following script: /usr/local/cpanel/scripts/rebuildhttpdconf To restart Apache, run the following script: /usr/local/cpanel/scripts/restartsrv_httpd After doing the above, /var/log/apache2/domlogs/* are still being written to. If I look at /etc/apache2/conf/httpd.conf there are no mentions of 'customlog' anywhere except for my hostname only. Am I missing something somewhere? Is there a default 'on' when CustomLog is not specified? 0 -
I'd like to be able to take out CustomLog for a specific vhost, it use to be easy back in the day, this required very minimal such as change the vhost then distill and rebuild, but this is no longer the case the CustomLog line is not in the httpd.conf.. How can I disable the domlog for a specific account. 0 -
/etc/apache2/conf.d/userdata/ssl/2_4/*username*/whatever.conf /etc/apache2/conf.d/userdata/std/2_4/*username*/whatever.conf in the conf you can put : CustomLog /dev/null combined ssl folder is with ssl - std folder is without ssl. By putting the conf in the username folder it means it applies to all domains that username owns. This will stop domlogs for ssl, std, and your bytes log (you won't have bandwidth stats anymore in whm/cpanel). There are other ways to do it so only the ssl log, only the std log, only the bytes, log or any combination of those are changed. You can read more at 0
Please sign in to leave a comment.
Comments
4 comments