Created
June 9, 2018 02:51
-
-
Save rkennesson/c2c3c254aea0a5485e3edfa2bb9c3ee8 to your computer and use it in GitHub Desktop.
nginx test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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