[code:1:e33c1381e2]sudo service nginx restart
* Restarting nginx nginx [fail]
ramon@mpc04:~$ sudo nginx
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default~:21[/code:1:e33c1381e2]
Now try to get more info
[code:1:e33c1381e2]ramon@mpc04:~$ sudo nginx -t
nginx: [emerg] a duplicate default server for 0.0.0.0:80 in /etc/nginx/sites-enabled/default~:21
nginx: configuration file /etc/nginx/nginx.conf test failed[/code:1:e33c1381e2]
Note that
default~
is a temp file
remove it afer verifying that default is present (it happens when you use gedit or any other editor that makes a backup copy)
Leave a Reply