httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark McCulligh" <mmccu...@visualtech.ca>
Subject Re: [users@httpd] Virtual Hosting problem
Date Tue, 17 Dec 2002 16:09:45 GMT
I  was looking at this example on apache.org

    NameVirtualHost 111.22.33.55

    <VirtualHost 111.22.33.55>
    DocumentRoot /www/otherdomain
    ServerName www.otherdomain.tld
    </VirtualHost>

    <VirtualHost 111.22.33.55>
    DocumentRoot /www/subdomain
    ServerName www.sub.domain.tld
    ServerAlias *.sub.domain.tld
    </VirtualHost>

I want one primary site www.domain.ca with add sub sites. site1.domain.ca,
site2.domain.ca , etc...
Could I add the www to the front of my site1.domain.ca and the ServerAlias?

Mark.

_________________________________________
Mark McCulligh, Application Developer / Analyst
Sykes Canada Corporation www.SykesCanada.com
(888)225-6824 ex. 3262
mmcculli@SykesCanada.com
----- Original Message -----
From: "Jon Steer" <jon@da-group.co.uk>
To: <users@httpd.apache.org>
Sent: Tuesday, December 17, 2002 11:05 AM
Subject: Re: [users@httpd] Virtual Hosting problem


> Hi Mark,
>
> > I am trying to setup VirtaulHosting using names. The problem is when I
go to
> > site1.domain.ca it loads the site fine but when you move around the
pages
> > from the primary site www.domain.ca keep coming up instead of the pages
from
> > site1.domain.ca  Did I declare my site1.domain.ca right?
> >
> > <VirtualHost 192.168.192.100>
> >     ServerName        www.domain.ca
> >     DocumentRoot    /www/domain
> >     DirectoryIndex    index.php index.html index.htm
> > </VirtualHost>
> >
> > <VirtualHost 192.168.192.100>
> >     ServerName        site1.domain.ca
> >     DocumentRoot    /www/site1
> >     DirectoryIndex    index.php index.html index.htm
> > </VirtualHost>
> >
>
> you setup looks fine as long as you have a NameVirtualHost directive in
the configuration files as well:
>
> NameVirtualHost 192.168.192.100
>
> should do the trick.
>
> Regards
>
> Jon
>
>
>
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message