IP listen

giorgos

New member
Joined
Jan 3, 2008
Messages
2
i have i machine debian 4 i just install DA the server have 6 ips and how its possible to listen only to 2 ips and not to 6 ips on ports 80 and 443 ?
 

chatwizrd

Verified User
Joined
Jul 3, 2005
Messages
2,007
Edit the files

/etc/httpd/conf/httpd.conf
/etc/httpd/conf/httpd-ssl.conf
or
/etc/httpd/extra/httpd-ssl.conf

Change the Listen variable to

Listen IP-HERE:80

and

Listen IP-HERE:443

then run

/sbin/service httpd restart
 

Jan_E

Verified User
Joined
Apr 29, 2011
Messages
107
Location
Amsterdam, NL
Very late reply: this will be overwritte by ./build rewrite_confs. Then it is changed again in 'listen 80'. Is there a way to permanently listen to only a few IP's? I tried editing /usr/local/directadmin/data/templates/httpd.conf without luck.
 
Top