Rootop 服务器运维与web架构

apache 虚拟目录错误:CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional “env=” clause (see docs)

| 暂无评论

[root@rhvl venus]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: Syntax error on line 1000 of /etc/httpd/conf/httpd.conf:
CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional “env=” clause (see docs)
                                                           [FAILED]重启服务时出现以上错误。查了点儿资料,没感觉有什么有效信息,就再次查看配置文件。
觉得日志文件格式(common)有点儿问题,追加到后面后,再次重启服务,OK了。

<VirtualHost www.venus.com >
    ServerAdmin venuslinux@gmail.com
    DocumentRoot /var/www/html/upload/
    ServerName www.venus.com
    ErrorLog logs/venus/venussite.log
    CustomLog logs/venus/venuscus.log common //把common追加到后面 common是日志定义的格式
</VirtualHost>

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/109.html

作者:Venus

服务器运维与性能优化

发表回复