[KLUG Members] Virtual Servers

MPs members@kalamazoolinux.org
Tue, 2 Mar 2004 13:43:29 -0500 (EST)


On Mon, 1 Mar 2004, Adam Williams wrote:

> > I'm hosting 2 domains on the same sever. Using Apache, and my ISP hosting
> > doing the DNS work.
> > The problem is, my site resolves fine, whether mysite.net or www.mysite.net
> > is used, the other domain, unless www is specified www.otherdomain.com it
> > points to mysite.net.
> > Why is this? Is it an Apache issue, or a DNS issue?
>
> First declaration is default.
>
> Add a ServerAlias otherdomain.com to the stanza where ServerName
> www.otherdomain.com is.
>
Or add a ServerAlias to your stanza like so:

<VirtualHost *>
ServerName otherdomain.com
ServerAlias *.otherdomain.com
blah blah blah
</VirtualHost>