# Include problem in config

**URL:** <https://www.ruby-forum.com/t/include-problem-in-config/196021>\
**Category:** NGINX\
**Created:** [October 5, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/include-problem-in-config/196021 "2010-10-05T16:05:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![friizer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/ee7513/32.png) [@friizer](https://www.ruby-forum.com/u/friizer)\
**Post date:** [October 5, 2010, 4:05pm UTC](https://www.ruby-forum.com/t/include-problem-in-config/196021/1 "2010-10-05T16:05:26Z")

</div>

Hi!

im migrating my nginx farm from 0.6.x → 0.7.x (ubuntu 8.04-\>10.x)

with 0.6 version of nginx i used a simple “include  
/etc/nginx/ports.conf;” in nginx.conf in a “virtual” server directive to  
include a

“listen 192.168.64.xx;”

directive from external file, because my nginx.conf files are  
syncronized between several servers,  
and my listen adresses are different (of course) for every machine

with 0.7.65 i cannot start the nginx server, because the process ignores  
my include statement, and trying to bind on all interfaces

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

my sample server definition is here  
server {  
include /etc/nginx/ports.conf;  
server\_name [st04.myhost.org](http://st04.myhost.org);

```
root /var/www/myhost.org/;

```

}

my ports.conf  
listen 192.168.64.xx; (changes with every machine and is not synced  
during changes)

is there another way to use common config files between several  
machines, and also use different ip addresses for listening in a farm?

Posted at Nginx Forum:

> **[include problem in config](https://forum.nginx.org/read.php?2,137423,137423#msg-137423)**
>
> Hi! im migrating my nginx farm from 0.6.x -\> 0.7.x (ubuntu 8.04-\>10.x) with 0.6 version of nginx i used a simple "include /etc/nginx/ports.conf;" in nginx.conf in a "virtual" server directive to include a "listen...
