Skip to content

Instantly share code, notes, and snippets.

@jdstaerk
Created March 21, 2017 21:29
Show Gist options
  • Select an option

  • Save jdstaerk/d0fdc25d7bf076012dbeb7dc419335b2 to your computer and use it in GitHub Desktop.

Select an option

Save jdstaerk/d0fdc25d7bf076012dbeb7dc419335b2 to your computer and use it in GitHub Desktop.
server {
listen 80 default_server;
server_name example.com sub.example.com;
index index.html index.htm
root /path/to/my/root/html/dir; # Default is /var/www/html
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment