如何启用IHS的gzip压缩

1
vim /opt/IBM/HTTPServer/conf/httpd.conf

找到下面这行配置,uncomment它:

1
LoadModule deflate_module modules/mod_deflate.so

找到 #AddOutputFilter INCLUDES .shtml 段,并在后面追加以下配置:

1
2
3
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/json
#Highest 9 - Lowest 1
DeflateCompressionLevel 6

保存后重启IHS:

1
2
[root@ralbz001167(SS_SRV2) conf]$ /opt/IBM/HTTPServer/bin/apachectl restart
[root@ralbz001167(SS_SRV2) conf]$
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *