Stop access log creation for (sub)domain
One of my subdomains receives a LOT of requests, and because of that it always has a very big logfile. There's nothing in that log that can be of any interest to me, so: is it possible to not create an log for a specific subdomain / domain / account?
-
Sure, though I have no idea how long it'll stick around. This would probably be a good idea for feature requests, honestly. Login to SSH (root) In /usr/local/apache/conf/httpd.conf, find the lines something like this: CustomLog /usr/local/apache/domlogs/sub.domain.com combined CustomLog /usr/local/apache/domlogs/sub.domain.com "%{%s}t %I .\n%{%s}t %O ."
Rip 'em out, entirely. Delete 'em ;) then run/usr/local/cpanel/bin/apache_conf_distiller --update
Then backup your httpd.confcp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd-backup.conf
Then run/usr/local/cpanel/bin/build_apache_conf
and verify that the changes you made are still there. If so, one final command.service httpd restart
I'm fairly certain that's good for both ea3 and ea4, but someone will correct me if I'm wrong.0 -
Hello, You may also find the following document helpful if you decide to use the instructions in the previous response: Advanced Apache Configuration - EasyApache - cPanel Documentation The feature request associated with this thread is found at: Configure (disable) log for specific account / domain Thank you. 0
Please sign in to leave a comment.
Comments
2 comments