Browse Source

Use syntax with cases according to official docs

+ Ref: https://github.com/nextcloud/server/pull/16792/files#r315207691

Signed-off-by: Micha Felle <micha@dietpi.com>
tags/v18.0.0beta4
MichaIng 4 years ago
parent
commit
a849b329a7
No account linked to committer's email address
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      config/.htaccess

+ 12
- 12
config/.htaccess View File

@@ -1,23 +1,23 @@
# Section for Apache 2.4 and 2.5
<ifModule mod_authz_core.c>
<IfModule mod_authz_core.c>
Require all denied
</ifModule>
<ifModule mod_access_compat.c>
</IfModule>
<IfModule mod_access_compat.c>
Deny from all
Satisfy All
</ifModule>
</IfModule>

# Section for Apache 2.2
<ifModule !mod_authz_core.c>
<ifModule !mod_access_compat.c>
<ifModule mod_authz_host.c>
<IfModule !mod_authz_core.c>
<IfModule !mod_access_compat.c>
<IfModule mod_authz_host.c>
Deny from all
</ifModule>
</IfModule>
Satisfy All
</ifModule>
</ifModule>
</IfModule>
</IfModule>

# Section for Apache 2.2 to 2.5
<ifModule mod_autoindex.c>
<IfModule mod_autoindex.c>
IndexIgnore *
</ifModule>
</IfModule>

Loading…
Cancel
Save