Chinaunix

标题: 关于http.conf文件中无法关闭错误日志的问题 [打印本页]

作者: bsdboy    时间: 2006-06-29 10:57
标题: 关于http.conf文件中无法关闭错误日志的问题
linux as4 系统
apache 2.x

在 httpd.conf文件里 注释掉了#ErrorLog logs/error_log
但是 好象不启作用,当apache服务重新启动后,还是在记录。

配置文件上下文

#ErrorLog logs/error_log
LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#CustomLog logs/access_log common

#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

CustomLog logs/access_log combined

ServerSignature On


有谁遇到过类似问题吗?
如何彻底关闭 错误日志,或者其他变通的方法,以便实现不记录错误日志
作者: bsdboy    时间: 2006-06-29 11:10
ErrorLog /dev/null

那只能先这样直接定向到空设备,变通的解决下了。
作者: kenduest    时间: 2006-06-29 11:11
原帖由 bsdboy 于 2006-6-29 10:57 发表
linux as4 系统
apache 2.x
在 httpd.conf文件里 注释掉了#ErrorLog logs/error_log
但是 好象不启作用,当apache服务重新启动后,还是在记录。
配置文件上下文


不大清楚默认配置的 log 名称为何,不过您可以配置 log 指向 /dev/null 这个项目,也许就不会实际去纪录。

==
作者: bsdboy    时间: 2006-06-29 11:16
谢谢 kenduest,我也是只能先这样变通一下了。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2