瀏覽代碼

Webdav security

* I'm disabling .htaccess too for good measure.
* Disable server side scripts
Lucian I. Last 6 年之前
父節點
當前提交
a6dc7987df
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 4 1
      examples/apache-directory-list-local/webdav.conf
  2. 4 1
      examples/apache-directory-list/webdav.conf

+ 4 - 1
examples/apache-directory-list-local/webdav.conf

@@ -9,9 +9,12 @@
     <Location />
         DirectoryIndex disabled
         DAV on
+        AllowOverride None
 
-        Options +Indexes
+        Options +Indexes -ExecCGI
         HeaderName /webdav-js/examples/apache-directory-list-local/header.html
+
+        SetHandler None
     </Location>
 
     # Add security

+ 4 - 1
examples/apache-directory-list/webdav.conf

@@ -9,9 +9,12 @@
     <Location />
         DirectoryIndex disabled
         DAV on
+        AllowOverride None
 
-        Options +Indexes
+        Options +Indexes -ExecCGI
         HeaderName /webdav-js/examples/apache-directory-list/header.html
+
+        SetHandler None
     </Location>
 
     # Add security