httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narendra Verma <narendra.ve...@impetus.co.in>
Subject [users@httpd] VirtulHost related question
Date Thu, 01 May 2008 11:43:39 GMT
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


Mime
View raw message