From: Tony Finch Date: Thu, 16 Mar 2000 18:02:47 +0000 (+0000) Subject: fix some inconsistencies and add a paragraph explainint how to include a X-Git-Tag: APACHE_2_0_ALPHA_2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc834937f948bc9c6d6869370a0a9354b72b3991;p=apache fix some inconsistencies and add a paragraph explainint how to include a "." in the expansion string immediately after a % directive. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84775 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_vhost_alias.html b/docs/manual/mod/mod_vhost_alias.html index d9331a5752..0ae411534e 100644 --- a/docs/manual/mod/mod_vhost_alias.html +++ b/docs/manual/mod/mod_vhost_alias.html @@ -102,7 +102,7 @@ do this you might use the following in your configuration file: A request for http://www.example.isp.com/directory/file.html will be satisfied by the file -/usr/local/apache/isp.com/e/x/a/example/directory/file.html. +/usr/local/apache/vhosts/isp.com/e/x/a/example/directory/file.html. A more even spread of files can be achieved by hashing from the end of the name, for example:
@@ -123,16 +123,29 @@ For IP-based virtual hosting you might use the following in your
 configuration file:
 
 	UseCanonicalName DNS
-	VirtualDocumentRootIP	/usr/local/apache/vhost/%1/%2/%3/%4/docs
-	VirtualScriptAliasIP	/usr/local/apache/vhost/%1/%2/%3/%4/cgi-bin
+	VirtualDocumentRootIP	/usr/local/apache/vhosts/%1/%2/%3/%4/docs
+	VirtualScriptAliasIP	/usr/local/apache/vhosts/%1/%2/%3/%4/cgi-bin
 
A request for http://www.example.isp.com/directory/file.html would be satisfied by the file -/usr/local/apache/10/20/30/40/docs/directory/file.html if +/usr/local/apache/vhosts/10/20/30/40/docs/directory/file.html if the IP address of www.example.com were 10.20.30.40. A request for http://www.example.isp.com/cgi-bin/script.pl would be satisfied by executing the program -/usr/local/apache/10/20/30/40/cgi-bin/script.pl. +/usr/local/apache/vhosts/10/20/30/40/cgi-bin/script.pl. +

+ +

+If you want to include the . character in a +VirtualDocumentRoot directive, but it clashes with a +% directive, you can work around the problem in the +following way: +

+	VirtualDocumentRoot	/usr/local/apache/vhosts/%2.0.%3.0
+
+A request for http://www.example.isp.com/directory/file.html +will be satisfied by the file +/usr/local/apache/vhosts/example.isp/directory/file.html.