Last active
December 27, 2015 13:38
-
-
Save ZachOrr/7334231 to your computer and use it in GitHub Desktop.
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 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