在CentOS系统中,Apache日志默认存储在/var/log/httpd/目录下。其中,访问日志为/var/log/httpd/access_log,错误日志为/var/log/httpd/error_log。
/var/log/httpd/
/var/log/httpd/access_log
/var/log/httpd/error_log
如果配置文件中指定了自定义路径,则需查看/etc/httpd/conf/httpd.conf文件中的CustomLog和ErrorLog指令来确定实际日志位置。
/etc/httpd/conf/httpd.conf
CustomLog
ErrorLog