Chinaunix

标题: apach2 怎么更改日志文件目录 [打印本页]

作者: jhkwei    时间: 2015-01-09 10:03
标题: apach2 怎么更改日志文件目录
我想把日志目录改换一个目录,应该怎么改,apach2 怎么更改日志文件目录
作者: Shell_HAT    时间: 2015-01-09 11:27
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so 'log/access_log'
# with ServerRoot set to '/www' will be interpreted by the
# server as '/www/log/access_log', where as '/log/access_log' will be
# interpreted as '/log/access_log'.



[root@WLS1 conf]# grep -E "access_log|error_log" httpd.conf | grep -v "^ *#"  
ErrorLog "logs/error_log"
    CustomLog "logs/access_log" common







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