I have setup Varnish to run on port 80 which seems to work fine.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
varnishd 8005 nobody 7u IPv4 14055 0t0 TCP *:http (LISTEN)
varnishd 8005 nobody 8u IPv6 14056 0t0 TCP *:http (LISTEN)
Under available sites in /etc/nginx I have the file default with:
server {
listen 8080;
....
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Why is it still looking for port 80?
Best Answer
You should add
listen 8080 default;
And make sure that in other configuration files or virtualhosts there is no other default port 80.