Skip to content

Instantly share code, notes, and snippets.

@ZachOrr
Last active December 27, 2015 13:38
Show Gist options
  • Save ZachOrr/7334231 to your computer and use it in GitHub Desktop.
Save ZachOrr/7334231 to your computer and use it in GitHub Desktop.
server {
# listen for ipv4; this line is default and implied
listen 80;
# set your server name here
server_name zachorr.com www.zachorr.com;
# Set our root directory for our static website
root /home/zach/www;
# set our index page
index index.html;
# Add a header for caching the following file formats
location ~* (css|js|png|jpe?g|gif|ico|html|woff)$ {
expires 24h;
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