apache配置報錯:Unrecognized LogFormat directive %I

跟着阿里雲調日誌教程(https://help.aliyun.com/document_detail/87740.html)時出現報錯:html

AH00526: Syntax error on line ... of httpd.conf:Unrecognized LogFormat directive %I阿里雲

其實在配置文件中就有答案:日誌

<IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedioorm

</IfModule>htm

咱們只須要找到:教程

LoadModule logio_module modules/mod_logio.soio

並將註釋去除便可module

相關文章
相關標籤/搜索