Created
January 13, 2011 02:18
-
-
Save IceskYsl/777293 to your computer and use it in GitHub Desktop.
nginx config file for static files
This file contains hidden or 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
location ~* ^.+\.(jpg|jpeg|gif|png|bmp|ico|css|js|swf|lrc)$ { | |
access_log off; | |
expires 30d; | |
} | |
location ~* ^.+\.(mp3|wma|rar|zip|flv)$ { | |
expires 30d; | |
} | |
location ~* ^.+\.(htm|html|xml)$ { | |
expires 1h; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment