Performing post-installation activities
Enabling GZIP compression
Gzip compression is a part of post installation.
Enabling GZip compression in Tomcat
Navigate to {{tomcat-home}}/conf/server.xml file and add the following lines to the HTTP Connector configuration.
compression="on" useSendfile="false"
compressableMimeType="text/css,text/javascript,application/javascript"For example, an HTTP Connector configuration with compression enabled is described as follows:
<Connector port="8080" maxHttpHeaderSize="8192"maxThreads="150" minSpareThreads="25" maxSpareThreads="75"enableLookups="false" redirectPort="8443" acceptCount="100"connectionTimeout="20000" disableUploadTimeout="true"compression="on" compressionMinSize="8192"
userSendfile="false" compressableMimeType="text/css,text/javascript,application/javascript"/>Enabling GZip compression in Apache (Worker Environment)
Ensure that the following modules are available in {{apache-home}}/modules/*
mod_deflate.so
mod_mime_magic.so
mod_headers.so
mod_mime.so
mod_setenvif.so
Add the following to {{apache-home}}/conf/httpd.conf or cloudio.conf depending on your configuration:
Last updated
Was this helpful?