From: Rich Bowen
Date: Tue, 25 Oct 2011 00:29:15 +0000 (+0000)
Subject: Makes the 'canonical hostname' example a tiny bit more useful, in that it now works...
X-Git-Tag: 2.3.15~92
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b1ba1f7f85edd8bf15a5a618495befa89e61b87;p=thirdparty%2Fapache%2Fhttpd.git
Makes the 'canonical hostname' example a tiny bit more useful, in that it now works for any number of hostnames, rather than just one.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1188464 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml
index c16f598f745..71c284590e9 100644
--- a/docs/manual/rewrite/avoid.xml
+++ b/docs/manual/rewrite/avoid.xml
@@ -220,7 +220,7 @@ hostname, such as www.example.com
instead of
module="core" type="section">If directive, as shown here:
-<If "$req{Host} = 'example.com'">
+<If "$req{Host} != 'www.example.com'">
RedirectMatch (.*) http://www.example.com$1
</If>