Nginx 0.8.4 Trying to bind on port 80 ?

olefebvre nginx-forum at nginx.us
Sun Jun 28 14:44:49 MSD 2009


My configuration is:
Apache listening on port 80, Iptables redirecting port 80 to port 8080, Nginx listening on port 8080.

I have been using Nginx with the same configuration for several months (0.7.x and 0.8.x):
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/dev/shm/client --http-proxy-temp-path=/dev/shm/proxy --http-fastcgi-temp-path=/dev/shm/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-http_secure_link_module

And until latest version i had no issue starting Nginx, yet today after compiling 0.8.4 i got the following error:

the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Starting nginx: : bind() to 0.0.0.0:80 failed (98: Address already in use                                                          )
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: bind() to 0.0.0.0:80 failed (98: Address already in use)
: still could not bind()
nginx.

Any idea of what is going wrong ?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3498,3498#msg-3498






More information about the nginx mailing list