On Tue, Dec 06, 2005 at 05:49:38PM -0700, Joseph wrote:
> On Tue, 2005-12-06 at 19:11 -0500, Jason Castonguay wrote:
> > I am wanting to do what I think is called virtual hosting -- have my 
> > computer act for 3 or 4 different domains.  Each domain would seem to 
> > have its own services.  For example: a different web page would come up 
> > when going to <host1.com> than when going to <host2.com>.  Is virtual 
> > hosting the right idea for this?  Is this the same as a virtual server?
> > 
> > I found documentation on the gentoo.org site:
> > 
> > http://www.gentoo.org/doc/en/vserver-howto.xml
> > 
> > Is this the right idea?  It sounds like I need a different kernel 
> > altogether.  I thought all Linux machines used the same kernel (but 
> > perhaps with tweaks and things).
> > 
> > I appreciate any feedback.  Thank you very much.
> 
> All you need is Apache.  You don't need any special kernel. 

I can't tell for apache 1.* as I'm using apache 2, but if you intend using
apache 2 you should check out /etc/apache2/conf/vhosts/* and httpd.apache.org
documentation on virtual hosts.

I think you want to use name based virtual hosting. This means you have one ip
for your server and multiple domains pointing to your server.

You'll have to include vhosts.conf in apache2.conf by uncommenting one line.
Then setup your vhosts in vhosts.conf and you're done. At least I think this
was everything I needed to do.

David
-- 
gentoo-user@gentoo.org mailing list

Reply via email to