aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-24 09:25:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-24 09:25:32 +0200
commit087e73cbfc8d1f17551f727e687d7fca6ac10b27 (patch)
treeaff0b9fd5042481618267f7a9ccca133ef32bc00
parent435672feaa22c0fc3c8caf7f6dbaefa0edb6f5d3 (diff)
parentc92a13848931a9872aad3edd281950f0dfebafeb (diff)
downloadnextcloud-server-087e73cbfc8d1f17551f727e687d7fca6ac10b27.tar.gz
nextcloud-server-087e73cbfc8d1f17551f727e687d7fca6ac10b27.zip
Merge pull request #8334 from owncloud/protect-co
Preventing access to the config folder
-rw-r--r--config/.htaccess12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/.htaccess b/config/.htaccess
new file mode 100644
index 00000000000..2421e9a1631
--- /dev/null
+++ b/config/.htaccess
@@ -0,0 +1,12 @@
+# line below if for Apache 2.4
+<ifModule mod_authz_core>
+Require all denied
+</ifModule>
+
+# line below if for Apache 2.2
+<ifModule !mod_authz_core>
+deny from all
+</ifModule>
+
+# section for Apache 2.2 and 2.4
+IndexIgnore *