]> granicus.if.org Git - apache/commitdiff
Clarifying/Simplifying the Proxy examples.
authorIgor Galić <igalic@apache.org>
Wed, 7 Apr 2010 21:14:48 +0000 (21:14 +0000)
committerIgor Galić <igalic@apache.org>
Wed, 7 Apr 2010 21:14:48 +0000 (21:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@931689 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_proxy.html.en
docs/manual/mod/mod_proxy.xml

index ceaf8c5a67bdcd5443f3369bd63713d549c13590..b7a9d02f7a679ee148d62a9f2805556b46dcd527 100644 (file)
     <p>In addition, if you wish to have caching enabled, consult
     the documentation from <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code>.</p>
 
+    <div class="example"><h3>Reverse Proxy</h3><p><code>
+    ProxyPass /foo http://foo.example.com/bar<br />
+    ProxyPassReverse /foo http://foo.example.com/bar
+    </code></p></div>
+
     <div class="example"><h3>Forward Proxy</h3><p><code>
     ProxyRequests On<br />
     ProxyVia On<br />
     </span>
     &lt;/Proxy&gt;
     </code></p></div>
-
-    <div class="example"><h3>Reverse Proxy</h3><p><code>
-    ProxyRequests Off<br />
-    <br />
-    &lt;Proxy *&gt;<br />
-    <span class="indent">
-      Order deny,allow<br />
-      Allow from all<br />
-    </span>
-    &lt;/Proxy&gt;<br />
-    <br />
-    ProxyPass /foo http://foo.example.com/bar<br />
-    ProxyPassReverse /foo http://foo.example.com/bar
-    </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="access" id="access">Controlling access to your proxy</a></h2>
index a4218f4126b710077752819b05fceb82c907bb97..d47722f6386d2aa2ed733381fd503320b1c04d2f 100644 (file)
     <p>In addition, if you wish to have caching enabled, consult
     the documentation from <module>mod_cache</module>.</p>
 
+    <example><title>Reverse Proxy</title>
+    ProxyPass /foo http://foo.example.com/bar<br />
+    ProxyPassReverse /foo http://foo.example.com/bar
+    </example>
+
     <example><title>Forward Proxy</title>
     ProxyRequests On<br />
     ProxyVia On<br />
     </indent>
     &lt;/Proxy&gt;
     </example>
-
-    <example><title>Reverse Proxy</title>
-    ProxyRequests Off<br />
-    <br />
-    &lt;Proxy *&gt;<br />
-    <indent>
-      Order deny,allow<br />
-      Allow from all<br />
-    </indent>
-    &lt;/Proxy&gt;<br />
-    <br />
-    ProxyPass /foo http://foo.example.com/bar<br />
-    ProxyPassReverse /foo http://foo.example.com/bar
-    </example>
     </section> <!-- /examples -->