Apache 日志目录一直会打印 other_vhosts_access.log,如果httpd.conf的虚拟配置没有access日志,会自动输出到other_vhosts_access.log,可以关闭
注释掉 /etc/apache2/conf-enabled/other-vhosts-access-log.conf 的
#CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
即可
本文介绍如何禁用Apache服务器中不必要的other_vhosts_access.log日志输出,通过注释掉特定配置文件中的日志记录设置来实现。
Apache 日志目录一直会打印 other_vhosts_access.log,如果httpd.conf的虚拟配置没有access日志,会自动输出到other_vhosts_access.log,可以关闭
注释掉 /etc/apache2/conf-enabled/other-vhosts-access-log.conf 的
#CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
即可
1279

被折叠的 条评论
为什么被折叠?
