Skip to content

.htaccess deny code execution not working for Apache + php-fpm #6766

Closed
@magenx

Description

@magenx
  1. Magento 2.1.1
  2. cPanel EasyApache 4 (edge)
  3. apache 2.4 + php-fpm

Steps to reproduce

  1. upload php file to pub/media/
  2. execute in browser

Expected result

  1. code execution in some folders must be denied

Actual result

  1. php files executed and working good

as a quick test, this works for any handler:

<FilesMatch \.(ph.+|sh.+|htm.+|cgi|[aj]sp|p[ly])$>
Order allow,deny
Deny from all
</FilesMatch>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions