Skip to content

Instantly share code, notes, and snippets.

@rkennesson
Created June 9, 2018 02:51
Show Gist options
  • Save rkennesson/c2c3c254aea0a5485e3edfa2bb9c3ee8 to your computer and use it in GitHub Desktop.
Save rkennesson/c2c3c254aea0a5485e3edfa2bb9c3ee8 to your computer and use it in GitHub Desktop.
nginx test
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;
}
}
<html>
<head>
<title>Welcome to Example.com!</title>
</head>
<body>
<h1>Success! The example.com server block is working!</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment