[Sussex] Unbinding Apache from an IP

John Crowhurst fyremoon at fyremoon.net
Fri Feb 3 16:59:07 UTC 2006


On Fri, February 3, 2006 12:12, Al Bennett said:
> Hi Guys
>
> Firstly, sorry I wasn't at the last Moot, I was up in London sticking
> adverts to exhibition panels.  Much fun.
>
> I've got an unmanaged box somewhere in Texas that hosts a couple of
> domains.
> It's got four usable IPs assigned to it, I'd like one of them to not have
> Apache on port 80 so I can put something else there.  I've modified the
> apache config (attached - names and IP changed to protect the guilty and
> most of the virtual hosts trimmed out for legibility, they're all the
> same)
> but for the life of me I can't get apache to let go of this IP.  netstat
> -l
> still shows it bound to *:80

Use BindAddress to bind Apache to a specified IP Address:

BindAddress 1.2.3.4

Now use Listen to listen on the addresses you want to use:

Listen 1.2.3.1:80
Listen 1.2.3.1:443
Listen 1.2.3.2:80
Listen 1.2.3.2:443
Listen 1.2.3.3:80
Listen 1.2.3.3:443

--
John




More information about the Sussex mailing list