瀏覽代碼

Protect config files from public access

ohartl 9 年之前
父節點
當前提交
3be0a51c75
共有 2 個文件被更改,包括 9 次插入0 次删除
  1. 8 0
      README.md
  2. 1 0
      config/.htaccess

+ 8 - 0
README.md

@@ -52,6 +52,10 @@ server {
         deny all;
         return 403;
     }
+    location ^~ /webmum/config {
+        deny all;
+        return 403;
+    }
 }
 ```
 
@@ -81,6 +85,10 @@ server {
         deny all;
         return 403;
     }
+    location ^~ /config {
+        deny all;
+        return 403;
+    }
 }
 ```
 

+ 1 - 0
config/.htaccess

@@ -0,0 +1 @@
+Deny from all