From: Daniel Gruno Date: Sat, 12 May 2012 08:10:14 +0000 (+0000) Subject: rebuild X-Git-Tag: 2.4.3~445 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f07e802ace68d069bebd01ffb2c05f9997681ae;p=apache rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1337477 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_vhost_alias.html.en b/docs/manual/mod/mod_vhost_alias.html.en index 65a3eeded2..9657cb5788 100644 --- a/docs/manual/mod/mod_vhost_alias.html.en +++ b/docs/manual/mod/mod_vhost_alias.html.en @@ -193,6 +193,26 @@ VirtualDocumentRoot /usr/local/apache/vhosts/%3+/%2.1/%2.2/%2.3/%2

The example request would come from /usr/local/apache/vhosts/example.com/d/o/m/ain/directory/file.html.

+

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 sub.www.domain.example.com + instead of simply www.domain.example.com, then using %3+ will result in the document +root being /usr/local/apache/vhosts/domain.example.com/... instead of the +intended example.com directory. In such cases, it can be beneficial to use +the combination %-2.0.%-1.0, which will always yield the domain name and the +tld, for example example.com regardless of the number of subdomains appended +to the hostname. As such, one can make a configuration that will direct all first, second +or third level subdomains to the same directory: +

+
+    VirtualDocumentRoot "/usr/local/apache/vhosts/%-2.0.%-1.0"
+
+ +

+In the example above, both www.example.com as well as www.sub.example.com +or example.com will all point to /usr/local/apache/vhosts/example.com. +

+

For IP-based virtual hosting you might use the following in your configuration file:

diff --git a/docs/manual/mod/mod_vhost_alias.xml.tr b/docs/manual/mod/mod_vhost_alias.xml.tr index 7cae3031b2..a0e2801c9e 100644 --- a/docs/manual/mod/mod_vhost_alias.xml.tr +++ b/docs/manual/mod/mod_vhost_alias.xml.tr @@ -1,7 +1,7 @@ - +