Created
January 20, 2013 20:51
-
-
Save robmiller/4581651 to your computer and use it in GitHub Desktop.
How to gzip certain files in nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
root /var/www/vhosts/example.com/; | |
index index.html; | |
location ~ "\.(css|js|txt|html)$" { | |
gzip on; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment