summaryrefslogtreecommitdiffstats
path: root/docs/manual/rewrite/rewrite_guide.xml
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2009-11-12 13:00:32 +0100
committerRich Bowen <rbowen@apache.org>2009-11-12 13:00:32 +0100
commit118edd63a0b520b01c473e7b5a972b615ab2a763 (patch)
treee4e92e5c303e13484fc23156ac990c77fc5fbe81 /docs/manual/rewrite/rewrite_guide.xml
parentfix CHANGES entries: mod_dav_fs -> mod_dav (diff)
downloadapache2-118edd63a0b520b01c473e7b5a972b615ab2a763.tar.xz
apache2-118edd63a0b520b01c473e7b5a972b615ab2a763.zip
Move the 'vhost per user' rule, and add commentary.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@835356 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--docs/manual/rewrite/rewrite_guide.xml41
1 files changed, 0 insertions, 41 deletions
diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml
index f6b3578c22..4695b2ce0d 100644
--- a/docs/manual/rewrite/rewrite_guide.xml
+++ b/docs/manual/rewrite/rewrite_guide.xml
@@ -189,47 +189,6 @@ RewriteRule ^(.*)/<strong>S=([^/]+)</strong>/(.*) $1/$3 [E=<strong>STATUS:$
</section>
- <section id="uservhosts">
-
- <title>Virtual Hosts Per User</title>
-
- <dl>
- <dt>Description:</dt>
-
- <dd>
- <p>Assume that you want to provide
- <code>www.<strong>username</strong>.host.domain.com</code>
- for the homepage of username via just DNS A records to the
- same machine and without any virtualhosts on this
- machine.</p>
- </dd>
-
- <dt>Solution:</dt>
-
- <dd>
- <p>For HTTP/1.0 requests there is no solution, but for
- HTTP/1.1 requests which contain a Host: HTTP header we
- can use the following ruleset to rewrite
- <code>http://www.username.host.com/anypath</code>
- internally to <code>/home/username/anypath</code>:</p>
-
-<example><pre>
-RewriteEngine on
-RewriteCond %{<strong>HTTP_HOST</strong>} ^www\.<strong>([^.]+)</strong>\.host\.com$
-RewriteRule ^(.*) /home/<strong>%1</strong>$1
-</pre></example>
-
-<p>Parentheses used in a <directive
-module="mod_rewrite">RewriteCond</directive> are captured into the
-backreferences <code>%1</code>, <code>%2</code>, etc, while parentheses
-used in <directive module="mod_rewrite">RewriteRule</directive> are
-captured into the backreferences <code>$1</code>, <code>$2</code>,
-etc.</p>
- </dd>
- </dl>
-
- </section>
-
<section id="redirecthome">
<title>Redirect Homedirs For Foreigners</title>