httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: mod_vhost_alias and NameVirtualHost question
Date Tue, 30 Apr 2002 12:54:20 GMT
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


Mime
View raw message