<VirtualHost servername errorlevel> ... </VirtualHost>Where :
This is the DNS name or IP address of this virtual host. The DNS name should map to a single IP address.
This can be either Required
or Optional
.
If set to Required, any misconfiguration or problem will cause the
server start to fail. If this is set to Optional, the server will attempt
to continue even if the configuration is invalid. This is an optional
parameter, and if left off, the server will default to Required
.
This can be any number of Server directives, including the SRMOptions directive which allows Resource directives in the server configuration file.
<VirtualHost www.uiuc.net> ServerName www.uiuc.net ServerAdmin blong@uiuc.net DocumentRoot /www </VirtualHost> <VirtualHost 127.0.0.1 Required> ServerName localhost ServerAdmin yow@wow.net <SRMOptions> DocumentRoot /www/local Alias /icons/ /usr/local/etc/httpd/icons/ ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-local/ # Local can use internal imagemap AddType text/x-imagemap .map AddType application/x-httpd-cgi .cgi </SRMOptions> </VirtualHost>