apache模块安装之defalte
一.安装模块1.apache编译时就设置了defalte.
--enable-defalte
查看是否有安装过
bin/apachectl -l|grep defalte
2.编译时没有增加,需要动态添加
/bin/apxs -i -a -c mod_deflate.c
二.http.conf增加配置参数
DeflateCompressionLevel 9
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript application/x-httpd-php
页:
[1]