| 今天在看《高性能php應(yīng)用開發(fā)》這本書,說(shuō)道如何啟用mod_deflate: 啟用如下模塊: LoadModule deflate_module modules/mod_deflate.so 然后加入指令: AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml text/javascript 即可。 但是發(fā)現(xiàn)老是出錯(cuò), Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration 去百度查看下,未果,之后發(fā)現(xiàn)官方有段話: Invalid command 'AddOutputFilterByType', perhaps misspelled       or defined by a module not included in the server configuration        - 原來(lái),除了啟用deflate之外,還要啟用mod_filter,找到這句: LoadModule filter_module modules/mod_filter.so 去除前面的分號(hào),終于好了! | 
|  | 
來(lái)自: corefashion > 《待分類1》