mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 06:29:47 -08:00
208f1db3b2
.htaccess will work on both apache v2.2 and v2.4 (without this change, on upgrade, an internal error on the server occurs)
20 lines
446 B
ApacheConf
20 lines
446 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
<IfModule mod_negotiation.c>
|
|
Options -MultiViews
|
|
</IfModule>
|
|
|
|
# Make sure .env files not not browseable if in a sub-directory.
|
|
<FilesMatch "\.env$">
|
|
# Apache 2.2
|
|
<IfModule !authz_core_module>
|
|
Deny from all
|
|
</IfModule>
|
|
|
|
# Apache 2.4+
|
|
<IfModule authz_core_module>
|
|
Require all denied
|
|
</IfModule>
|
|
</FilesMatch>
|
|
|
|
</IfModule>
|