summaryrefslogtreecommitdiffstats
path: root/owncloud-auth-local.inc
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-05 07:54:26 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-05 07:54:26 +0200
commit7840065569de84a135711318d66e5bcf8827097e (patch)
tree97e0473a782c76e119c967235b1308fa115acc1d /owncloud-auth-local.inc
owncloud: import 8.0.4 from rawhide
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>