Skip to content

Instantly share code, notes, and snippets.

@luandevpro
Created June 30, 2019 02:44
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 luandevpro/fbc621e28821491ed96989c6ad8b2642 to your computer and use it in GitHub Desktop.
Save luandevpro/fbc621e28821491ed96989c6ad8b2642 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
root /var/www/example.com/html;
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