Apache 2.4-mod_substitute.so启用后无法启动Apache-Invalid command ‘AddOutputFilterByType’-解决办法

好吧,这个问题用了一些时间,因为是windows下的,所以有些莫名其妙,之前用Apache2.2的时候一切正常,换了xampp最新版后就无法启用了,用到其违禁词过滤的功能,无法启动,而且Apache的错误日志和windows错误日志也没有记录。最终通过命令行

httpd -t

,启动的时候,得到了报错

AH00526: Syntax error on line 2 of F:/xampp/Apache/conf/extra/httpd-substitute.conf:
Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration

通过谷歌,找到了官网说明,原来是Apache 2.4之后,要想生效,必须启用另一个模块才可以,即要启用

mod_filter.so
mod_substitute.so

两个模块。启用后,即可正常启动Apache。


未经允许不得转载:阿藏博客 » Apache 2.4-mod_substitute.so启用后无法启动Apache-Invalid command ‘AddOutputFilterByType’-解决办法

赞 (0) 打赏