Try conditiinal formatting to support apache 2.2 and 2.4

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-05-13 18:01:06 -07:00
parent 3ff745937a
commit 157944b774

View file

@ -37,6 +37,22 @@
</IfModule>
Options -Indexes
# DENY ACCESS TO IIS CONFIG FILE
# Apache 2.2+
<IfModule !authz_core_module>
<Files "web.config">
Order allow,deny
Deny from all
</Files>
</IfModule>
# Apache 2.4+
<IfModule authz_core_module>
<Files "web.config">
Require all denied
</Files>
</IfModule>