Koozali.org: home of the SME Server

Redirect or Virtual Host or Both?

John

Redirect or Virtual Host or Both?
« on: February 21, 2002, 02:20:44 AM »
I have 2 domains (www.a.com and www.b.com) that I want to host off of the same machine.  What do I need to read up on the figure out how to do this?  I am stuck between the redirect and virutal host configurations for apache.

Thanks,
JL

Terry Brummell

Re: Redirect or Virtual Host or Both?
« Reply #1 on: February 21, 2002, 03:03:55 AM »
Read up on virtual domains:

http://www.e-smith.org/docs/manual/5.1/admin-virtdom.html

have your dns for www.a.com point to your IP addy, have dns for www.b.com point to your IP addy, create an ibay for each new website, ie: websitea and websiteb, then add a virtual domain for each where the domain name is the actually DNS listed web address and the content drop down box selected points to the appropriate ibay.

HTH, Terry

John wrote:
>
> I have 2 domains (www.a.com and www.b.com) that I want to
> host off of the same machine.  What do I need to read up on
> the figure out how to do this?  I am stuck between the
> redirect and virutal host configurations for apache.
>
> Thanks,
> JL

John

Re: Redirect or Virtual Host or Both?
« Reply #2 on: February 21, 2002, 03:26:21 AM »
Thanks Terry... that is almost to easy. :)