Skip to content

Instantly share code, notes, and snippets.

@channprj
Last active February 17, 2021 12:24
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 channprj/7792678a6854c48db898377eb4ea309a to your computer and use it in GitHub Desktop.
Save channprj/7792678a6854c48db898377eb4ea309a to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name example.com;
root /home/app/html;
index index.html;
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
location / {
try_files $uri /index.html =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment