apache2.4开启gzip(xampp 1.8.1)不同于apache2.2
要使用Gzip网站压缩,在apache2.4(xampp 1.8.1)版本下,httpd.conf 除了要开启mod_deflate外,还要开启mod_filter。其次Gizp的设置(httpd.conf的末尾增加代码):
DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js
查看完整版本: apache2.4开启gzip(xampp 1.8.1)不同于apache2.2
Tags: apache