summaryrefslogtreecommitdiffstats
path: root/owncloud-auth-local.inc
diff options
context:
space:
mode:
Diffstat (limited to 'owncloud-auth-local.inc')
-rw-r--r--owncloud-auth-local.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/owncloud-auth-local.inc b/owncloud-auth-local.inc
new file mode 100644
index 0000000..69cfd00
--- /dev/null
+++ b/owncloud-auth-local.inc
@@ -0,0 +1,14 @@
+# Apache config snippet. To be used by /etc/httpd/conf.d/*.conf files
+# with Include. Allows access only from local system.
+
+<IfModule mod_authz_core.c>
+# Apache 2.4
+Require local
+</IfModule>
+<IfModule !mod_authz_core.c>
+# Apache 2.2
+Order Deny,Allow
+Deny from all
+Allow from 127.0.0.1
+Allow from ::1
+</IfModule>