How to Bind Apache to fixed amount of IP's instead of all

japz

Verified User
Joined
Jul 21, 2010
Messages
11
Hi there,

By default httpd.conf is configured to bind to ALL * Ip addresses. Because I'm running on the same server Lighttpd with a different port and with its own ip address I'm having troubles because Apache wants to bind all IP's including the one I use for lighttpd.

Now I edited the httpd.conf and added the IP's I use for apache/directadmin and manually and removed the *:80, but I'm now afraid that on a certain moment DA will overwrite the httpd.conf settings again.

So my question is, am I save right now? Or is there a better way?
 
Hello,

Unless you ask directadmin to rewrite the /etc/httpd/conf/httpd.conf it will stay untouched. So you're quite save, for more safety you might want to chattr the file immutable.

Code:
chattr +i /etc/httpd/conf/httpd.conf
 
Back
Top