Nginx duplicate default server error

view story

http://serverfault.com – I have 2 files. The default: /etc/nginx/sites-enabled/default server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 << LINE 10 I then have a custom file: /etc/nginx/nginx.conf http { server { server_name mydomain; listen 3000; root /projects/myproject/public; } } When I try to restart the service I receive this error: the duplicate default server in /etc/nginx/sites-enabled/default:10 configuration file /etc/nginx/nginx.conf test failed I have minimal experience with nginx and was hopi (HowTos)