Skip to content

Instantly share code, notes, and snippets.

@pjdietz
Last active December 23, 2015 06:38
Show Gist options
  • Save pjdietz/6594886 to your computer and use it in GitHub Desktop.
Save pjdietz/6594886 to your computer and use it in GitHub Desktop.
Boilerplate code for adding gzip support with mod_deflate
<VirtualHost *:80>
...
<IfModule mod_deflate.c>
# Automatically compress these mime types
AddOutputFilterByType DEFLATE text/plain text/html text/css text/xml applicaton/json
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment