How do you enable mod_gzip compression with Apache

I don't see the module listed in the Server Admin panel... Does Apache in Mac OS X Server not come with the mod_gzip module? If not, does anyone know how to install it? Seems ridiculous that any web server would come without this preinstalled.

Mac mini Server, Mac OS X (10.6.4)

Posted on Oct 31, 2010 6:04 PM

Reply
2 replies

Nov 7, 2010 9:59 AM in response to Theodore Lee1

mod_deflate should be installed. If you enable that under Server Admin and then add the following to your /etc/apache2/httpd.conf file:

+SetOutputFilter DEFLATE+
+DeflateFilterNote ratio+
+SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary+
+SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary+
+SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-var+

That should start giving you some compression.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you enable mod_gzip compression with Apache

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.