计算机知识分享网

【apache】Apache未启用mod_filter模块报错解决

如果未启用该模块,启动会报错如下:
Invalid command 'AddOutputFilterByType', perhaps misspelled  or defined by a module not included in the server configuration       
 -AddOutputFilterByType       has moved from the core to mod_filter, which must be loaded.
只需要在httpd.conf文件启用该模块即可:
LoadModule filter_module modules/mod_filter.so

#Apache