nginx- duplicate default server error

后端 未结 5 1955
梦毁少年i
梦毁少年i 2021-01-30 12:32

In my error log i get

[emerg] 10619#0: a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/mysite.com:4

on Line 4

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-30 12:39

    Execute this at the terminal to see conflicting configurations listening to the same port:

    grep -R default_server /etc/nginx
    

提交回复
热议问题