Browse Source

Protect config files from public access

ohartl 9 years ago
parent
commit
3be0a51c75
2 changed files with 9 additions and 0 deletions
  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