Answers:
在<VirtualHost>
有关虚拟主机的块中,您可以配置要发送到/ dev / null的日志
<VirtualHost *:80>
ServerName nologserver.tld
ErrorLog /dev/null
CustomLog /dev/null common
</VirtualHost>
将/etc/apache2/conf-enabled/other-vhosts-access-log.conf更改为以下内容:
ErrorLog /dev/null
CustomLog /dev/null common