mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -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 ACCESS TO IIS CONFIG FILE
|
||||
|
||||
# Apache 2.2+
|
||||
<IfModule !authz_core_module>
|
||||
<Files "web.config">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</Files>
|
||||
</Files>
|
||||
</IfModule>
|
||||
|
||||
# Apache 2.4+
|
||||
<IfModule authz_core_module>
|
||||
<Files "web.config">
|
||||
Require all denied
|
||||
</Files>
|
||||
</IfModule>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue