I'm having a heck of an issue here. I have nginx & varnish installed. Configured nginx to listed on port 8080, and varnish to listen on port 80
nGinx will not start due to
Jul 06 16:26:36 host nginx[2863]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
I have grep'd my entire server to see if I can find where it could also be "extra" bound, and nothing is found.
Screenshot: http://prntscr.com/bpnxki
EDIT: I have killed the varnish process for now, then restarted nginx, and when I netstat -tlnp I can see that it is binding to both ports 80 and 8080. I need this on port 8080 only: http://prntscr.com/bpo2yl
How can I prevent nginx from binding to port 80 period?
noport 80 bindings – Kevin Jul 06 '16 at 20:52grepfind the string I searched for in the first screenshot? – Kevin Jul 06 '16 at 20:54/etc/nginx/sites-enabledthat listens on some bogus port you don't care about then - it's probable that nginx is attempting to bind to a port by default as per the defaults compiled into it. If you give it a different port to listen on though that may solve the issue. – Thomas Ward Jul 06 '16 at 21:11/etc/nginx/sites-enabled, however, when I added alisten 82;, port 80 shows still bound: http://prntscr.com/bpoknf – Kevin Jul 06 '16 at 21:16