diff options
Diffstat (limited to 'nextcloud-auth-local.inc')
-rw-r--r-- | nextcloud-auth-local.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nextcloud-auth-local.inc b/nextcloud-auth-local.inc new file mode 100644 index 0000000..69cfd00 --- /dev/null +++ b/nextcloud-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> |