关闭apache, error.log,access.log日志,防止输出,
关闭apache, error.log,access.log日志,防止输出,
vi http.conf
ErrorLog logs/error.log
## LogLevel: Control the number of messages logged to the error.log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn #
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
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 在前面加“#”号应该就可以了。
评论暂时关闭