You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fa...@locus.apache.org on 2000/03/16 19:02:47 UTC
cvs commit: apache-1.3/htdocs/manual/mod mod_vhost_alias.html
fanf 00/03/16 10:02:47
Modified: htdocs/manual/mod mod_vhost_alias.html
Log:
fix some inconsistencies and add a paragraph explainint how to include a
"." in the expansion string immediately after a % directive.
Revision Changes Path
1.6 +18 -5 apache-1.3/htdocs/manual/mod/mod_vhost_alias.html
Index: mod_vhost_alias.html
===================================================================
RCS file: /home/cvs/apache-1.3/htdocs/manual/mod/mod_vhost_alias.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- mod_vhost_alias.html 1999/12/19 16:34:32 1.5
+++ mod_vhost_alias.html 2000/03/16 18:02:47 1.6
@@ -102,7 +102,7 @@
</PRE>
A request for <CODE>http://www.example.isp.com/directory/file.html</CODE>
will be satisfied by the file
-<CODE>/usr/local/apache/isp.com/e/x/a/example/directory/file.html</CODE>.
+<CODE>/usr/local/apache/vhosts/isp.com/e/x/a/example/directory/file.html</CODE>.
A more even spread of files can be achieved by hashing from the end of
the name, for example:
<PRE>
@@ -123,16 +123,29 @@
configuration file:
<PRE>
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
</PRE>
A request for <CODE>http://www.example.isp.com/directory/file.html</CODE>
would be satisfied by the file
-<CODE>/usr/local/apache/10/20/30/40/docs/directory/file.html</CODE> if
+<CODE>/usr/local/apache/vhosts/10/20/30/40/docs/directory/file.html</CODE> if
the IP address of <CODE>www.example.com</CODE> were 10.20.30.40.
A request for <CODE>http://www.example.isp.com/cgi-bin/script.pl</CODE>
would be satisfied by executing the program
-<CODE>/usr/local/apache/10/20/30/40/cgi-bin/script.pl</CODE>.
+<CODE>/usr/local/apache/vhosts/10/20/30/40/cgi-bin/script.pl</CODE>.
+</P>
+
+<P>
+If you want to include the <CODE>.</CODE> character in a
+<CODE>VirtualDocumentRoot</CODE> directive, but it clashes with a
+<CODE>%</CODE> directive, you can work around the problem in the
+following way:
+<PRE>
+ VirtualDocumentRoot /usr/local/apache/vhosts/%2.0.%3.0
+</PRE>
+A request for <CODE>http://www.example.isp.com/directory/file.html</CODE>
+will be satisfied by the file
+<CODE>/usr/local/apache/vhosts/example.isp/directory/file.html</CODE>.
</P>
<P>