forked from phpbb/phpbb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from | ||
# module mod_authz_host to a new module called mod_access_compat (which may be | ||
# disabled) and a new "Require" syntax has been introduced to mod_authz_core. | ||
# We could just conditionally provide both versions, but unfortunately Apache | ||
# does not explicitly tell us its version if the module mod_version is not | ||
# available. In this case, we check for the availability of module | ||
# mod_authz_core (which should be on 2.4 or higher only) as a best guess. | ||
<IfModule mod_version.c> | ||
<IfVersion < 2.4> | ||
Order Allow,Deny | ||
Deny from All | ||
</IfVersion> | ||
<IfVersion >= 2.4> | ||
Require all denied | ||
</IfVersion> | ||
</IfModule> | ||
<IfModule !mod_version.c> | ||
<IfModule !mod_authz_core.c> | ||
Order Allow,Deny | ||
Deny from All | ||
</IfModule> | ||
<IfModule mod_authz_core.c> | ||
Require all denied | ||
</IfModule> | ||
</IfModule> |