Welcome! Log In Create A New Profile

Advanced

Address already in use

Posted by bwa@klp.no 
Address already in use
August 07, 2017 03:09PM
Hi all.

Using nginx 1.10.3-0ubuntu0.16.04.2 I get several messages :

aug. 07 20:43:07 ubuntu nginx[9578]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)

my conig file has several entries with the same listen directive:

server {
listen 80;
server_name xxxx.no;
....
...
}

server {
listen 80;
server_name xxxx.no;
....
...
}


The strange thing is that this is OK on the same config running on my Unix and windows server.

The goal is to have nginx act as a proxy based on the server_name


/bwa
Re: Address already in use
August 08, 2017 04:46PM
You get the same result with a default config?
Re: Address already in use
October 30, 2017 11:44PM
First: what is listening to port 80

lsof -i :80

properly apache :P, but kill all services listening to port 80 and the try to restart your nginx...
Alternatively add ip directives to the listener like
listen 123.123.123.123:80
to the configs
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready