Created
February 16, 2016 13:16
-
-
Save denvers/09093af93e9ab4831313 to your computer and use it in GitHub Desktop.
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
error_page 404 /404.shtml; | |
if ($host !~* ^www\.) { | |
rewrite ^(.*)$ http://www.$host$1 permanent; | |
} | |
location ~* \.(jpg|jpeg|gif|css|ttf|woff|png|htc|gz|zip|swf|txt|flv|svg|ttf|atom|rss|svgz|cur|js|ico|html)$ { | |
access_log off; | |
expires 30d; | |
add_header Pragma public; | |
add_header Cache-Control "public, must-revalidate, proxy-revalidate"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment