httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendra Verma <>
Subject [users@httpd] VirtulHost related question
Date Thu, 01 May 2008 11:43:39 GMT
Using _default_ vhosts
   <VirtualHost _default_:*>

    DocumentRoot /www/default
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
You can use AliasMatch<>
or 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 ?

View raw message