+3 votes
in Web & Google by (6.2k points)

I have installed VestaCP on my VPS with Apache + Nginx reverse proxy and am using Debian-10 operating system. I want to disable access logging as the file size grows very quickly. 

In nginx.conf file, I have

access_log off;

I have also commented out access_log in the virtual host file of the domain. But it still logs all accesses to the access_log file. How can I disable it?

1 Answer

0 votes
by (25.5k points)

Since you have installed VestaCP on Debian, you need to edit *.apache2.conf and *.apache2.ssl.conf present in folder /home/USERNAME/conf/web (where USERNAME is the username of your domain)

In these two files, comment out CustomLog.

    #CustomLog /var/log/apache2/domains/example.com.bytes bytes
    #CustomLog /var/log/apache2/domains/example.com.log combined