Skip to content

Commit c848b93

Browse files
committed
MAGETWO-60633: [Github] .htaccess deny code execution not working for Apache + php-fpm #6766
1 parent 47c3523 commit c848b93

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pub/media/.htaccess

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ php_flag engine 0
1111
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
1212
Options -ExecCGI
1313

14-
<FilesMatch ".+\.(ph(p[3457]?|t|tml)|[aj]sp|p[ly]|sh|cgi|shtm|htm)$">
15-
Order allow,deny
16-
Deny from all
14+
<FilesMatch ".+\.(ph(p[3457]?|t|tml)|[aj]sp|p[ly]|sh|cgi|shtml?|html?)$">
15+
SetHandler default-hanlder
1716
</FilesMatch>
1817

1918
<IfModule mod_rewrite.c>

0 commit comments

Comments
 (0)