All of a sudden I am getting the below nginx error
* Restarting nginx * Stopping nginx nginx ...done. * Starting nginx nginx nginx: [emerg] bind() to [
My issue was that I had overlapping listen directives. I have managed to figure out overlapping directives by running
grep -r listen /etc/nginx/*
Two files were listening at the same port:
/etc/nginx/conf.d/default.conf: listen 80; /etc/nginx/sites-enabled/default.conf: listen 80;