mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Update .htaccess (#9001)
.htaccess will work on both apache v2.2 and v2.4 (without this change, on upgrade, an internal error on the server occurs)
This commit is contained in:
parent
1d7d31b9ae
commit
208f1db3b2
|
@ -5,7 +5,15 @@
|
||||||
|
|
||||||
# Make sure .env files not not browseable if in a sub-directory.
|
# Make sure .env files not not browseable if in a sub-directory.
|
||||||
<FilesMatch "\.env$">
|
<FilesMatch "\.env$">
|
||||||
|
# Apache 2.2
|
||||||
|
<IfModule !authz_core_module>
|
||||||
Deny from all
|
Deny from all
|
||||||
|
</IfModule>
|
||||||
|
|
||||||
|
# Apache 2.4+
|
||||||
|
<IfModule authz_core_module>
|
||||||
|
Require all denied
|
||||||
|
</IfModule>
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
Loading…
Reference in a new issue