Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

[BUGFIX] .htaccess compatibility for Apache ≥ v2.3 #257

Merged
merged 1 commit into from
Nov 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,30 @@

# protect database
<FilesMatch data.db>
Order allow,deny
Deny from all
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>

# Apache ≥ 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>

# protect schema
<FilesMatch schema.sql>
Order allow,deny
Deny from all
# Apache < 2.3
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>

# Apache ≥ 2.3
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>