GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing httpd.apache.org — mod_vhost_alias - Apache HTTP Server Version 2.4 Apache Module mod_vhost_alias
SummaryThis module creates dynamically configured virtual hosts, by
allowing the IP address and/or the NoteIf ScriptAlias "/cgi-bin/" "/usr/local/apache2/cgi-bin/" VirtualScriptAlias "/never/found/%0/cgi-bin/" TopicsDirectivesBugfix checklistSee alsoDirectory Name Interpolation ¶All the directives in this module interpolate a string into
a pathname. The interpolated string (henceforth called the
"name") may be either the server name (see the NoteThe interpolated directory must be an absolute path. The
special value
If Examples ¶For simple name-based virtual hosts you might use the following directives in your server configuration file: UseCanonicalName Off VirtualDocumentRoot "/usr/local/apache/vhosts/%0" A request for
For a very large number of virtual hosts it is a good idea
to arrange the files to reduce the size of the
UseCanonicalName Off VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2" A request for
A more even spread of files can be achieved by hashing from the end of the name, for example: VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.-1/%2.-2/%2.-3/%2" The example request would come from
Alternatively you might use: VirtualDocumentRoot "/usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2.4+" The example request would come from
A very common request by users is the ability to point multiple domains to multiple
document roots without having to worry about the length or number of parts of the
hostname being requested. If the requested hostname is VirtualDocumentRoot "/usr/local/apache/vhosts/%-2.0.%-1.0"
In the example above, both For IP-based virtual hosting you might use the following in your configuration file: UseCanonicalName DNS VirtualDocumentRootIP "/usr/local/apache/vhosts/%1/%2/%3/%4/docs" VirtualScriptAliasIP "/usr/local/apache/vhosts/%1/%2/%3/%4/cgi-bin" A request for
If you want to include the VirtualDocumentRoot "/usr/local/apache/vhosts/%2.0.%3.0" A request for
The VirtualDocumentRoot Directive ¶
The NoteVirtualDocumentRoot will override any DocumentRoot directives you may have put in the same
context or child contexts. Putting a VirtualDocumentRoot
in the global server scope will effectively override DocumentRoot directives in any virtual hosts defined later
on, unless you set VirtualDocumentRoot to None
in each virtual host.
VirtualDocumentRootIP Directive ¶
The VirtualScriptAlias Directive ¶
The VirtualScriptAliasIP Directive ¶
The | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |