Nginx refuses to bind to 8080

Posted by Stofke on Server Fault See other posts from Server Fault or by Stofke
Published on 2012-11-12T10:29:16Z Indexed on 2012/11/12 11:05 UTC
Read the original article Hit count: 176

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about nginx

Related posts about port