]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
As pointed out in bug 33290, we really don't want a <Limit> directive
authorRich Bowen <rbowen@apache.org>
Sun, 30 Jan 2005 01:53:14 +0000 (01:53 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 30 Jan 2005 01:53:14 +0000 (01:53 +0000)
here at all.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@149091 13f79535-47bb-0310-9956-ffa450edef68

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

index f570105ebf181119bbe5dfa99b053b844f1e2fa3..120c3ad6367963004499630e5fd3e138e96665e6 100644 (file)
@@ -43,12 +43,21 @@ configuration</td></tr>
       &lt;/Location&gt;
     </code></p></div>
 
-    <p>You may wish to add a 
-    <code class="directive"><a href="../mod/core.html#limit">&lt;Limit&gt;</a></code> 
-    clause inside the 
+    <p>You may wish to use <code class="module"><a href="../mod/mod_access.html">mod_access</a></code> inside the 
     <code class="directive"><a href="../mod/core.html#location">&lt;Location&gt;</a></code>
     directive to limit access to your server configuration 
-    information.</p>
+    information:</p>
+
+    <div class="example"><p><code>
+      &lt;Location /server-info&gt;<br />
+      <span class="indent">
+        SetHandler server-info<br />
+        Order deny,allow<br />
+        Deny from all<br />
+        Allow from yourcompany.com<br />
+      </span>
+      &lt;/Location&gt;
+    </code></p></div>
 
     <p>Once configured, the server information is obtained by
     accessing <code>http://your.host.dom/server-info</code></p>
index 3593e699b8f54801d85ac6706765d85df9faf9c3..35112ff6272bf948c77d5a749aff67db767b39cb 100644 (file)
@@ -40,12 +40,21 @@ configuration</description>
       &lt;/Location&gt;
     </example>
 
-    <p>You may wish to add a 
-    <directive type="section" module="core">Limit</directive> 
-    clause inside the 
+    <p>You may wish to use <module>mod_access</module> inside the 
     <directive type="section" module="core">Location</directive>
     directive to limit access to your server configuration 
-    information.</p>
+    information:</p>
+
+    <example>
+      &lt;Location /server-info&gt;<br />
+      <indent>
+        SetHandler server-info<br />
+        Order deny,allow<br />
+        Deny from all<br />
+        Allow from yourcompany.com<br />
+      </indent>
+      &lt;/Location&gt;
+    </example>
 
     <p>Once configured, the server information is obtained by
     accessing <code>http://your.host.dom/server-info</code></p>