在/etc/apache2/apache2.conf
我取消注释以下行:
# ErrorLog ${APACHE_LOG_DIR}/error.log
结果如下:
serv:/var/log/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (2)No such file or directory: apache2: could not open error log file /etc/apache2/logs/error_log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
如何禁用不包含 ErrorLog/CustomLog 指令的虚拟主机的错误日志记录?