Skip to content

Commit 208f1db

Browse files
authored
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)
1 parent 1d7d31b commit 208f1db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.htaccess

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55

66
# Make sure .env files not not browseable if in a sub-directory.
77
<FilesMatch "\.env$">
8-
Deny from all
8+
# Apache 2.2
9+
<IfModule !authz_core_module>
10+
Deny from all
11+
</IfModule>
12+
13+
# Apache 2.4+
14+
<IfModule authz_core_module>
15+
Require all denied
16+
</IfModule>
917
</FilesMatch>
1018

1119
</IfModule>

0 commit comments

Comments
 (0)