server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
#root /usr/share/nginx/www;
root /home/ubuntu/node-login;
# Make site accessible from
server_name ec2-xx-xx-xxx-xxx.us-west-1.compute.amazonaws.com;
location /{
proxy_pass http://127.0.0.1:8000/;
proxy_redirect off;
}
}
这导致 nignx 错误 [warn] 在 0.0.0.0:80 上发生冲突的服务器名称“ec2 ...”,我不明白,任何解释表示赞赏。谢谢。