nginx- duplicate default server error

后端 未结 5 1959
梦毁少年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:53

    If you're on Digital Ocean this means you need to go to /etc/nginx/sites-enabled/ and then REMOVE using rm -R digitalocean and default

    It fixed it for me!

    Pic of Console on Windows 10 using Bitvise

提交回复
热议问题