]> granicus.if.org Git - apache/commitdiff
Allow the typical non-DAV methods to be unrestricted
authorJoshua Slive <slive@apache.org>
Tue, 22 Aug 2006 17:07:54 +0000 (17:07 +0000)
committerJoshua Slive <slive@apache.org>
Tue, 22 Aug 2006 17:07:54 +0000 (17:07 +0000)
in our DAV examples (in particular, POST).  Also
change <Location> to <Directory> in the docs.  This
particular example was not a security problem because
<Location> was being used to *extend* access, rather than
to *restrict* access, but it is better to encourage
people to use <Directory> by default.

PR: 40030

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

docs/conf/extra/httpd-dav.conf.in
docs/manual/mod/mod_dav.xml

index 9f47eff479c04a65b950c6db2e20844ba464ccfb..d58725dab44407b3b1ce730dfde3c226b40dfdf3 100644 (file)
@@ -28,7 +28,7 @@ Alias /uploads "@@ServerRoot@@/uploads"
 
     # Allow universal read-access, but writes are restricted
     # to the admin user.
-    <LimitExcept GET OPTIONS>
+    <LimitExcept GET POST OPTIONS>
         require user admin
     </LimitExcept>
 </Directory>
index 717189cf0f06c96730d9a6c846b9b0ba6864e492..e387c40b6a07da150924b6edd3e203bef1f418ed 100644 (file)
@@ -79,7 +79,7 @@
     <example><title>Full Example</title>
       DavLockDB /usr/local/apache2/var/DavLock<br />
       <br />
-       &lt;Location /foo&gt;<br />
+       &lt;Directory /usr/local/apache2/htdocs/foo&gt;<br />
        <indent>
         Order Allow,Deny<br />
         Allow from all<br />
          AuthName DAV<br />
          AuthUserFile user.passwd<br />
          <br />
-         &lt;LimitExcept GET OPTIONS&gt;<br />
+         &lt;LimitExcept GET POST OPTIONS&gt;<br />
          <indent>
            require user admin<br />
          </indent>
          &lt;/LimitExcept&gt;<br />
        </indent>
-       &lt;/Location&gt;<br />
+       &lt;/Directory&gt;<br />
     </example>
 
    <p><module>mod_dav</module> is a descendent of Greg Stein's <a