server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name www.example.com example.com;
...
哪里有问题?谢谢!
答案 0 :(得分:2)
检查' www.example.com'是指您的网站。如果没有,你必须创建一个' A'为此记录。在大多数情况下,您必须在提供DNS管理的公司执行此操作,可能是您注册域名的公司。