Using _default_ vhosts
   <VirtualHost _default_:*>

    DocumentRoot /www/default
    ...
    </VirtualHost>
Using such a default vhost with a wildcard port effectively prevents any 
request going to the main server.
A default vhost never serves a request that was sent to an address/port that is 
used for name-based vhosts. If the request contained an unknown or no Host: 
header it is always served from the primary name-based vhost (the vhost for 
that address/port appearing first in the configuration file).
You can use 
AliasMatch<http://apache.active-venture.com/mod/mod_alias.html#aliasmatch> or 
RewriteRule<http://apache.active-venture.com/mod/mod_rewrite.html#RewriteRule> 
to rewrite any request to a single information page (or script).
I got this one from net.
But I am not getting the concept of blue line mentioned above. And what is the 
meaning  of main server in case of serving request by apache.
Any reply ?
Thanks
Narendra

Reply via email to