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. Wong" <sw...@webprincess-designs.com> on 2002/05/01 07:09:26 UTC
Re: mod_vhost_alias and NameVirtualHost question
Thanks Joshua! :-)
Joshua Slive wrote:
> S. Wong wrote:
>
> > NameVirtualHost 192.168.1.111:80
> >
> > <VirtualHost 192.168.1.111:80>
> > ServerName foo.com
> > DocumentRoot /usr/www/nvhosts/foo.com
> > [host specific configurations]
> > </VirtualHost>
> >
> > <VirtualHost _default_:*>
> > VirtualDocumentRoot /usr/www/vhosts/%0
> > VirtualScriptAlias /usr/www/vhosts/%0/cgi-bin/
> > </VirtualHost>
>
> There is no "_default_" virtual host when you are using name virtual
> hosts. Instead, the first listed host becomes the default. So to get
> the configuration you want, you should switch the order of those two and
> change _default_:* to 192.168.1.111:80.
>
> 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
--
Ciao ?:-)
Shirlyn, the WebPrincess
---------------------------------------------------------------------
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