httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r123367 - /httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en /httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml
Date Sun, 26 Dec 2004 21:47:46 GMT
Author: rbowen
Date: Sun Dec 26 13:47:44 2004
New Revision: 123367

URL: http://svn.apache.org/viewcvs?view=rev&rev=123367
Log:
As per bug #30308, added example where a virtual host is proxied to
another server. Thanks go to Matt Burke for submitting the example.

Modified:
   httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en
   httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml

Modified: httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en
Url: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en?view=diff&rev=123367&p1=httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en&r1=123366&p2=httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en&r2=123367
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en	(original)
+++ httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.html.en	Sun Dec 26 13:47:44 2004
@@ -25,9 +25,8 @@
 
     <p>This document attempts to answer the commonly-asked questions about
     setting up virtual hosts. These scenarios are those involving multiple
-    web sites running on a single server, via <a href="name-based.html">name-based</a>
or <a href="ip-based.html">IP-based</a> virtual hosts. A document should be
-    coming soon about running sites on several servers behind a single
-    proxy server.</p>
+    web sites running on a single server, via <a href="name-based.html">name-based</a>
or <a href="ip-based.html">IP-based</a> virtual hosts.
+    </p>
 
 </div>
 <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif"
/> <a href="#purename">Running several name-based web
@@ -44,6 +43,8 @@
 	hosts</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#mixed">Mixed name-based
and IP-based
     vhosts</a></li>
+<li><img alt="" src="../images/down.gif" /> <a href="#proxy">Using <code>Virtual_host</code>
and
+    mod_proxy together</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#default">Using <code>_default_</code>
     vhosts</a></li>
 <li><img alt="" src="../images/down.gif" /> <a href="#migrate">Migrating
a name-based vhost to an
@@ -422,6 +423,27 @@
     </code></p></div>
 
 	</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
+<div class="section">
+<h2><a name="proxy" id="proxy">Using <code>Virtual_host</code> and
+    mod_proxy together</a></h2>
+
+    <p>The following example allows a front-end machine to proxy a
+    virtual host through to a server running on another machine. In the
+    example, a virtual host of the same name is configured on a machine
+    at <code>192.168.111.2</code>. The <code class="directive"><a href="../mod/mod_proxy.html#proxypreservehost
on">ProxyPreserveHost On</a></code> directive is
+    used so that the desired hostname is passed through, in case we are
+    proxying multiple hostnames to a single machine.</p>
+
+    <div class="example"><p><code>
+    &lt;VirtualHost *:*&gt;<br />
+        ProxyPreserveHost On<br />
+        ProxyPass / http://192.168.111.2<br />
+        ProxyPassReverse / http://192.168.111.2/<br />
+        ServerName hostname.example.com<br />
+    &lt;/VirtualHost&gt;
+    </code></p></div>
+
+    </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif"
/></a></div>
 <div class="section">
 <h2><a name="default" id="default">Using <code>_default_</code>
     vhosts</a></h2>

Modified: httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml
Url: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml?view=diff&rev=123367&p1=httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml&r1=123366&p2=httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml&r2=123367
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml	(original)
+++ httpd/httpd/branches/2.0.x/docs/manual/vhosts/examples.xml	Sun Dec 26 13:47:44 2004
@@ -29,9 +29,8 @@
     setting up virtual hosts. These scenarios are those involving multiple
     web sites running on a single server, via <a
     href="name-based.html">name-based</a> or <a
-    href="ip-based.html">IP-based</a> virtual hosts. A document should be
-    coming soon about running sites on several servers behind a single
-    proxy server.</p>
+    href="ip-based.html">IP-based</a> virtual hosts.
+    </p>
 
 </summary>
 
@@ -404,6 +403,28 @@
     </example>
 
 	</section>
+
+    <section id="proxy"><title>Using <code>Virtual_host</code> and
+    mod_proxy together</title>
+
+    <p>The following example allows a front-end machine to proxy a
+    virtual host through to a server running on another machine. In the
+    example, a virtual host of the same name is configured on a machine
+    at <code>192.168.111.2</code>. The <directive
+    module="mod_proxy">ProxyPreserveHost On</directive> directive is
+    used so that the desired hostname is passed through, in case we are
+    proxying multiple hostnames to a single machine.</p>
+
+    <example>
+    &lt;VirtualHost *:*&gt;<br />
+        ProxyPreserveHost On<br />
+        ProxyPass / http://192.168.111.2<br />
+        ProxyPassReverse / http://192.168.111.2/<br />
+        ServerName hostname.example.com<br />
+    &lt;/VirtualHost&gt;
+    </example>
+
+    </section>
 
 	<section id="default"><title>Using <code>_default_</code>
     vhosts</title>

Mime
View raw message