APACHE 啟動出來這個錯
APACHE 啟動出來這個錯
Syntax error on line 100 of /usr/local/apache/conf/extra/httpd-vhosts.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)
沒能找到原因,特來請教各位
如果把虛擬機配置CustomLog logs/xiaoxu.error_log這一行去掉就OK!!不解中!!
《解決方案》
有什麼不解的?
如果用自定義的日誌文件,需要你三個參數都寫對才可以。你參數沒配好,自然寫不進去。
你把那一行去掉了,他就不寫入自定義的日誌文件了,自然就沒問題了。
這問題我沒遇到過,純屬猜測,純屬猜測!
《解決方案》
呵呵,從上面出錯信息確實像樓上說的,但是配置文件中是這樣自定義的! 確實看不出個究竟出來!
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
《解決方案》
原帖由 xjtdy888 於 2007-2-14 21:25 發表於 1樓
APACHE 啟動出來這個錯
Syntax error on line 100 of /usr/local/apache/conf/extra/httpd-vhosts.conf:
CustomLog takes two or three arguments, a file name, a custom log format string or format name, ...
請張貼 /usr/local/apache/conf/extra/httpd-vhosts.conf 的第 100 行內容。
--