cd httpd-2.2.19/modules/metadata sudo /usr/local/apache2/bin/apxs -i -a -c mod_expires.c sudo vi /usr/local/apache2/conf/httpd.conf ExpiresActive On FileEtag none
mod_deflate 用于开启gzip压缩
复制代码 代码如下:
cd httpd-2.2.19/modules/filters sudo /usr/local/apache2/bin/apxs -i -a -c mod_deflate.c sudo vi /usr/local/apache2/conf/httpd.conf SetOutputFilter DEFLATE