]> granicus.if.org Git - apache/commitdiff
Starts on the vhosts document. Need to eliminate duplication with the
authorRich Bowen <rbowen@apache.org>
Sat, 21 Nov 2009 00:27:17 +0000 (00:27 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 21 Nov 2009 00:27:17 +0000 (00:27 +0000)
main /docs/vhosts/mass.html doc.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@882806 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/remapping.xml
docs/manual/rewrite/vhosts.html.en
docs/manual/rewrite/vhosts.xml

index 87e6a20c202278777ca1344a591f154b85e91f24..2d712c32f356a562b2fffc98ac735f93fccd3220 100644 (file)
@@ -44,10 +44,8 @@ configuration.</div>
 <li><img alt="" src="../images/down.gif" /> <a href="#archive-access-multiplexer">Redirecting to Geographically Distributed Servers</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#browser-dependent-content">Browser Dependent Content</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#canonicalurl">Canonical URLs</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#uservhosts">Virtual Hosts Per User</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#moveddocroot">Moved <code>DocumentRoot</code></a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#fallback-resource">Fallback Resource</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#mass-virtual-hosting">Mass Virtual Hosting</a></li>
 </ul><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="access.html">Controlling access</a></li><li><a href="vhosts.html">Virtual hosts</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
@@ -487,61 +485,6 @@ RewriteRule   ^/(puppies|canines)/(.*)    /dogs/$2  [R]
      </dd>
       </dl>
 
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
-<h2><a name="uservhosts" id="uservhosts">Virtual Hosts Per User</a></h2>
-
-  
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-    <p>We want to automatically create a virtual host for every user who
-    has an account on our web server system, without having to create
-    new VirtualHost sections.</p>
-
-    <p>In this recipe, we assume that we'll be using the hostname
-    <code>www.<strong>username</strong>.example.com</code> for each
-    user, and serve their content out of
-    <code>/home/<strong>username</strong>/www</code>.</p>
-    </dd>
-
-    <dt>Solution:</dt>
-
-    <dd>
-
-<div class="example"><pre>
-RewriteEngine on
-RewriteCond   %{<strong>HTTP_HOST</strong>}        ^www\.<strong>([^.]+)</strong>\.example\.com$
-RewriteRule   ^(.*) /home/<strong>%1</strong>/www$1
-</pre></div></dd>
-
-<dt>Discussion</dt>
-    <dd>
-
-    <div class="warning">You will need to take care of the DNS 
-    resolution - Apache does
-    not handle name resolution. You'll need either to create CNAME 
-    records for each hostname, or a DNS wildcard record. Creating DNS
-    records is beyond the scope of this document.</div>
-
-<p>Parentheses used in a <code class="directive"><a href="../mod/mod_rewrite.html#rewritecond">RewriteCond</a></code> are captured into the
-backreferences <code>%1</code>, <code>%2</code>, etc, while parentheses
-used in <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> are
-captured into the backreferences <code>$1</code>, <code>$2</code>,
-etc.</p>
-
-<p>
-As with many techniques discussed in this document, mod_rewrite really
-isn't the best way to accomplish this task. You should, instead,
-consider using <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> instead, as it will much
-more gracefully handle anything beyond serving static files, such as any
-dynamic content, and Alias resolution. 
-</p>
-    </dd>
-  </dl>
-
 </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="moveddocroot" id="moveddocroot">Moved <code>DocumentRoot</code></a></h2>
@@ -638,22 +581,6 @@ file, as well as in a &lt;Directory&gt; block.</p>
 
 </dl>
 
-</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
-<h2><a name="mass-virtual-hosting" id="mass-virtual-hosting">Mass Virtual Hosting</a></h2>
-
-  
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-      <p>Mass virtual hosting is one of the more common uses of
-      mod_rewrite. However, it is seldom the best way to handle mass
-      virtual hosting. This topic is discussed at great length in the <a href="../vhosts/mass.html">virtual host documentation</a>.</p>
-    </dd>
-  </dl>
-
 </div></div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../en/rewrite/remapping.html" title="English">&nbsp;en&nbsp;</a></p>
index c91ca97f1c83492e31ed73c92a0ed925228063e4..5a596cff15c9d96dad0786ec4540015f69c6c10a 100644 (file)
@@ -489,62 +489,6 @@ RewriteRule   ^/(puppies|canines)/(.*)    /dogs/$2  [R]
 
 </section>
 
-<section id="uservhosts">
-
-  <title>Virtual Hosts Per User</title>
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-    <p>We want to automatically create a virtual host for every user who
-    has an account on our web server system, without having to create
-    new VirtualHost sections.</p>
-
-    <p>In this recipe, we assume that we'll be using the hostname
-    <code>www.<strong>username</strong>.example.com</code> for each
-    user, and serve their content out of
-    <code>/home/<strong>username</strong>/www</code>.</p>
-    </dd>
-
-    <dt>Solution:</dt>
-
-    <dd>
-
-<example><pre>
-RewriteEngine on
-RewriteCond   %{<strong>HTTP_HOST</strong>}        ^www\.<strong>([^.]+)</strong>\.example\.com$
-RewriteRule   ^(.*) /home/<strong>%1</strong>/www$1
-</pre></example></dd>
-
-<dt>Discussion</dt>
-    <dd>
-
-    <note type="warning">You will need to take care of the DNS 
-    resolution - Apache does
-    not handle name resolution. You'll need either to create CNAME 
-    records for each hostname, or a DNS wildcard record. Creating DNS
-    records is beyond the scope of this document.</note>
-
-<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>
-
-<p>
-As with many techniques discussed in this document, mod_rewrite really
-isn't the best way to accomplish this task. You should, instead,
-consider using <module>mod_vhost_alias</module> instead, as it will much
-more gracefully handle anything beyond serving static files, such as any
-dynamic content, and Alias resolution. 
-</p>
-    </dd>
-  </dl>
-
-</section>
-
 <section id="moveddocroot">
 
   <title>Moved <code>DocumentRoot</code></title>
@@ -649,21 +593,4 @@ file, as well as in a &lt;Directory&gt; block.</p>
 
 </section>
 
-<section id="mass-virtual-hosting">
-
-  <title>Mass Virtual Hosting</title>
-
-  <dl>
-    <dt>Description:</dt>
-
-    <dd>
-      <p>Mass virtual hosting is one of the more common uses of
-      mod_rewrite. However, it is seldom the best way to handle mass
-      virtual hosting. This topic is discussed at great length in the <a
-      href="../vhosts/mass.html">virtual host documentation</a>.</p>
-    </dd>
-  </dl>
-
-</section>
-
 </manualpage> 
index 98e664574a40f7a33b4314c6d93fb782a3ac3e1c..5a2ee588a83d3ba124ceb92ef4a11224afbfb198 100644 (file)
@@ -33,7 +33,62 @@ mod_rewrite.</div>
 
 </div>
 <div id="quickview"><h3>See also</h3><ul class="seealso"><li><a href="../mod/mod_rewrite.html">Module documentation</a></li><li><a href="intro.html">mod_rewrite introduction</a></li><li><a href="remapping.html">Redirection and remapping</a></li><li><a href="access.html">Controlling access</a></li><li><a href="proxy.html">Proxying</a></li><li><a href="advanced.html">Advanced techniques and tricks</a></li><li><a href="avoid.html">When not to use mod_rewrite</a></li></ul></div>
-</div>
+<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+<div class="section">
+<h2><a name="uservhosts" id="uservhosts">Virtual Hosts Per User</a></h2>
+
+  
+
+  <dl>
+    <dt>Description:</dt>
+
+    <dd>
+    <p>We want to automatically create a virtual host for every user who
+    has an account on our web server system, without having to create
+    new VirtualHost sections.</p>
+
+    <p>In this recipe, we assume that we'll be using the hostname
+    <code>www.<strong>username</strong>.example.com</code> for each
+    user, and serve their content out of
+    <code>/home/<strong>username</strong>/www</code>.</p>
+    </dd>
+
+    <dt>Solution:</dt>
+
+    <dd>
+
+<div class="example"><pre>
+RewriteEngine on
+RewriteCond   %{<strong>HTTP_HOST</strong>}        ^www\.<strong>([^.]+)</strong>\.example\.com$
+RewriteRule   ^(.*) /home/<strong>%1</strong>/www$1
+</pre></div></dd>
+
+<dt>Discussion</dt>
+    <dd>
+
+    <div class="warning">You will need to take care of the DNS 
+    resolution - Apache does
+    not handle name resolution. You'll need either to create CNAME 
+    records for each hostname, or a DNS wildcard record. Creating DNS
+    records is beyond the scope of this document.</div>
+
+<p>Parentheses used in a <code class="directive"><a href="../mod/mod_rewrite.html#rewritecond">RewriteCond</a></code> are captured into the
+backreferences <code>%1</code>, <code>%2</code>, etc, while parentheses
+used in <code class="directive"><a href="../mod/mod_rewrite.html#rewriterule">RewriteRule</a></code> are
+captured into the backreferences <code>$1</code>, <code>$2</code>,
+etc.</p>
+
+<p>
+As with many techniques discussed in this document, mod_rewrite really
+isn't the best way to accomplish this task. You should, instead,
+consider using <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code> instead, as it will much
+more gracefully handle anything beyond serving static files, such as any
+dynamic content, and Alias resolution. 
+</p>
+    </dd>
+  </dl>
+
+</div></div>
 <div class="bottomlang">
 <p><span>Available Languages: </span><a href="../en/rewrite/vhosts.html" title="English">&nbsp;en&nbsp;</a></p>
 </div><div id="footer">
index a5d7f103b6d7f7c3a58e2ef55a44b86cdc1f95f1..7ef9bf456d520ed634eb855c30102b9417047f02 100644 (file)
@@ -47,4 +47,60 @@ mod_rewrite.</note>
 <seealso><a href="advanced.html">Advanced techniques and tricks</a></seealso>
 <seealso><a href="avoid.html">When not to use mod_rewrite</a></seealso>
 
+<section id="uservhosts">
+
+  <title>Virtual Hosts Per User</title>
+
+  <dl>
+    <dt>Description:</dt>
+
+    <dd>
+    <p>We want to automatically create a virtual host for every user who
+    has an account on our web server system, without having to create
+    new VirtualHost sections.</p>
+
+    <p>In this recipe, we assume that we'll be using the hostname
+    <code>www.<strong>username</strong>.example.com</code> for each
+    user, and serve their content out of
+    <code>/home/<strong>username</strong>/www</code>.</p>
+    </dd>
+
+    <dt>Solution:</dt>
+
+    <dd>
+
+<example><pre>
+RewriteEngine on
+RewriteCond   %{<strong>HTTP_HOST</strong>}        ^www\.<strong>([^.]+)</strong>\.example\.com$
+RewriteRule   ^(.*) /home/<strong>%1</strong>/www$1
+</pre></example></dd>
+
+<dt>Discussion</dt>
+    <dd>
+
+    <note type="warning">You will need to take care of the DNS 
+    resolution - Apache does
+    not handle name resolution. You'll need either to create CNAME 
+    records for each hostname, or a DNS wildcard record. Creating DNS
+    records is beyond the scope of this document.</note>
+
+<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>
+
+<p>
+As with many techniques discussed in this document, mod_rewrite really
+isn't the best way to accomplish this task. You should, instead,
+consider using <module>mod_vhost_alias</module> instead, as it will much
+more gracefully handle anything beyond serving static files, such as any
+dynamic content, and Alias resolution. 
+</p>
+    </dd>
+  </dl>
+
+</section>
+
 </manualpage>