Nginx – [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

nginxport

this made me crazy! I want to use nginx on port 81 and apache on 80. apache works correctly but when I want to start nginx I get this error:

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

but I didn't configured any site on port 80 in nginx!

server {
    listen       81  default_server;
    listen   [::]:81 default_server  ipv6only=on;
    server_name  _;
    return       444;
}

server {

        listen   81; ## listen for ipv4

        server_name  domain.com;
        root   /home/domain/public_html/;

        location / {

        }

.
.
.
}

note that I have not any other file in sites-available an sites-enabled folders.

Best Answer

I found a conf file in conf.d folder listening to 80.