VirtulHost related question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 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 ?

Thanks

Narendra

 


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux