Click to See Complete Forum and Search --> : running 2 IP addresses?


Danster
01-30-2001, 10:46 PM
My box has 2 IP addresses and one instance of apache running on it. When I start up apache, it only runs a single IP. Is there an easy way to get http service up on both automatically? Right now I type:

bin/ifconfig eth0:0 212.0.0.0

to get the secondary IP address started.

Ig0r
01-30-2001, 11:47 PM
Read the documentation at apache.org.
I know apache is capable of serving for multiple domains simultaneously, but I don't know the config file syntax for it.

Danster
02-02-2001, 01:11 PM
That wasn't any help. the problem isn't necessarily with the .conf file, it's just with automatically running the command that starts up the other IP?

whiterabbit
02-03-2001, 02:48 PM
Ok, abeit I poisoned myself with too much booze last night but if I'm remembering correctly don't you have to actually generate another instance of apache (processes, config file, etc.) to handle the 2nd IP addr? I'll look aroundsey and see if I can find my spiffy superbad apache book to confirm my post-alcoholic binge lunacy.

reeze
02-03-2001, 03:21 PM
nop, a single instance of apache should be able to handle both IP's. But I dont know how to get the second interface to auto-run. I suppose that putting that line in a script file that is auto run would work, but I dont know what file(s) that would be..

--reeze

Danster
02-03-2001, 06:05 PM
Thanks! if U come up with anything let me know.