You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "S. David Sheeks" <sd...@isdponline.com> on 2001/12/02 23:33:39 UTC

2 domains

How would I setup apache to do the following

www.address.com to go to directory /
and www.2ndaddress.com to go /tes

in otherwods I have 2 domain names pointing to my ip and I would like each one to go to a different startup dir.

dave


Re: 2 domains

Posted by "S. David Sheeks" <sd...@isdponline.com>.
thanks!  that is 2 questions that you have helped me with :)

dave

----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: "apache" <us...@httpd.apache.org>
Sent: Sunday, December 02, 2001 5:34 PM
Subject: Re: 2 domains


>
> On Sun, 2 Dec 2001, S. David Sheeks wrote:
>
> > How would I setup apache to do the following
> >
> > www.address.com <http://www.address.com>  to go to directory /
> > and www.2ndaddress.com <http://www.2ndaddress.com>  to go /tes
> >
> > in otherwods I have 2 domain names pointing to my ip and I would like
> > each one to go to a different startup dir.
>
> This is usually called "name based virtual hosting":
> http://httpd.apache.org/docs/vhosts/name-based.html
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: 2 domains

Posted by Joshua Slive <jo...@slive.ca>.
On Sun, 2 Dec 2001, S. David Sheeks wrote:

> How would I setup apache to do the following
>
> www.address.com <http://www.address.com>  to go to directory /
> and www.2ndaddress.com <http://www.2ndaddress.com>  to go /tes
>
> in otherwods I have 2 domain names pointing to my ip and I would like
> each one to go to a different startup dir.

This is usually called "name based virtual hosting":
http://httpd.apache.org/docs/vhosts/name-based.html

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org