Skip to content

Instantly share code, notes, and snippets.

@gu-fan
Last active September 26, 2018 13:00
Show Gist options
  • Save gu-fan/fef8698a0aa633736f7fb67d4410b509 to your computer and use it in GitHub Desktop.
Save gu-fan/fef8698a0aa633736f7fb67d4410b509 to your computer and use it in GitHub Desktop.
nginx default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/ubuntu/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment