quick apache question

DukeN

Golden Member
Dec 12, 1999
1,422
0
76
Is it possible to set up two different domain names on the same LAN (2 machine LAN0 with apache? Even if you only have one IP address?

Just LMK if its possible, if it is i'll find a way to make it work.

Cheers and thanks.
PB
 

randal

Golden Member
Jun 3, 2001
1,890
0
71
yup ... virtual hosting ...


win2k does it through a thing called "host headers" -- inside every http request, the url is requested from an IP; the serving program [apache / iis] determines what particular site is requested and correspondingly sends it out. Only downside of this is that if DNS dies, none of your sites work at all [even by IP]; if you surf to http://YOUR.IP.GOES.HERE the url request would be for YOUR.IP.GOES.HERE, which, of course, is not a site hosted by you [unless you can register 4 octet domain names now].

So yes, you can ... blindingly easy in IIS, unsure of complexity with apache/*nix

randal