VirtualHost

directive (Apache), virtual, hosts, hosts , virtual">

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition
By Robert Eckstein, Stephen Spainhour
Table of Contents
Chapter 18.  Apache Configuration


<VirtualHost>

 <VirtualHost>  ...  </VirtualHost> 

[ server config ]

Used when the Apache server services multiple hostnames. Each hostname is given its own <VirtualHost> directive.

<VirtualHost> has a beginning and ending directive, with other configuration directives for the virtual host entered in between. Most directives are valid within <VirtualHost> except the following: BindAddress, GroupId, MaxRequestsPerChild, MaxSpareServers, MinSpareServers, Listen, NameVirtualHost, PidFile, ServerType, ServerRoot, StartServers, TypesConfig, and UserId. This is essentially a segmenting directive that applies directives solely to the virtual host specified. For example:

 <VirtualHost sales.oreilly.com> ServerAdmin webmaster@oreilly.com DocumentRoot /ora/sales/www ServerName sales.oreilly.com ErrorLog /ora/sales/logs/error_log TransferLog /ora/sales/logs/access_log </VirtualHost> 

Team-Fly    
Top


Webmaster in a Nutshell
Webmaster in a Nutshell, Third Edition
ISBN: 0596003579
EAN: 2147483647
Year: 2002
Pages: 412

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net