Skip to content

Instantly share code, notes, and snippets.

@rwieruch
Created May 25, 2019 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwieruch/4898116fe01153f50e8976ea1462db73 to your computer and use it in GitHub Desktop.
Save rwieruch/4898116fe01153f50e8976ea1462db73 to your computer and use it in GitHub Desktop.
HTTP Static Website
server {
listen 80;
listen [::]:80;
root /var/www/example.com/html/production;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment