nginx in ubuntu (trusty) 14.04

Maxim Dounin mdounin at mdounin.ru
Fri Mar 14 09:13:27 UTC 2014


Hello!

On Thu, Mar 13, 2014 at 10:05:22AM -0700, Jeroen Ooms wrote:

> After upgrading my stack Apache2-Nginx Ubuntu stack to Ubuntu 14.04
> beta, I am getting these errors in /var/log/nginx/error.log
> 
> 2014/03/13 16:11:01 [emerg] 14625#0: bind() to 0.0.0.0:80 failed (98:
> Address already in use)
> 2014/03/13 16:11:01 [emerg] 14625#0: bind() to [::]:80 failed (98:
> Address already in use)
> 2014/03/13 16:11:01 [emerg] 14625#0: bind() to 0.0.0.0:80 failed (98:
> Address already in use)
> 2014/03/13 16:11:01 [emerg] 14625#0: bind() to [::]:80 failed (98:
> Address already in use)
> 2014/03/13 16:11:01 [emerg] 14625#0: still could not bind()
> 
> However the strange thing is that the default configuration of nginx
> on Ubuntu does not include any sites running on port 80 (because
> Apache uses this port). In previous versions of Ubuntu I have never
> seen these messages. So I don't quite understand where these errors
> are coming from.
> 
> Anyone familiar with the nginx package in Ubuntu can explain?

Note that "listen 80" is the default - so check if there is a 
server{} block without listen directives.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list