Last active
August 29, 2015 14:22
-
-
Save chrisdev/c802a0e7eb819c562db7 to your computer and use it in GitHub Desktop.
Nginx static conf
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
server { | |
listen 80; | |
server_name www.mysite.org; | |
return 301 $scheme://mysite.org; | |
} | |
server { | |
listen 80; | |
root /home/myorg/static/myour_static_site; | |
index index.html index.htm; | |
access_log /var/log/nginx/myorg_site.log; | |
error_log /var/log/nginx/myorg_site.log; | |
server_name mysite.org; | |
location / { | |
default_type "text/html"; | |
try_files $uri $uri/ =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment