Last active
August 29, 2015 13:57
-
-
Save demisx/9372794 to your computer and use it in GitHub Desktop.
Nginx default site config
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 8000; | |
server_name localhost; | |
root /Users/dmoore/projects/hotilinet/hotilinet-web; | |
access_log "/Users/dmoore/projects/hotilinet/hotilinet-web/logs/hotili-net.access.log"; | |
error_log "/Users/dmoore/projects/hotilinet/hotilinet-web/logs/hotilinet-web.error.log"; | |
error_page 404 /app/404.html; | |
error_page 403 /app/403.html; | |
index index.html; | |
location / { | |
allow 127.0.0.1; | |
deny all; | |
expires -1; | |
add_header Pragma "no-cache"; | |
add_header Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"; | |
# Replace with this for AngularJS projects | |
# try_files $uri $uri/ /app/$uri /app/index.html =404; | |
try_files $uri $uri/ =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment