mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Try conditiinal formatting to support apache 2.2 and 2.4
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3ff745937a
commit
157944b774
|
@ -37,6 +37,22 @@
|
|||
</IfModule>
|
||||
Options -Indexes
|
||||
|
||||
<Files "web.config">
|
||||
Deny from all
|
||||
</Files>
|
||||
# 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>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue