htacces apache v2.4

2

I have a .htaccess file of prestashop, with the following content:

<FilesMatch "\.tpl$">
Deny from all
</FilesMatch>

The issue is that this file seems to give problems with the new version of apache v2.4 (which provides me with my hosting), and does not work if we use it.

This is the first time that I have an error with the configuration of a .htaccess and I can not find any type of documentation, regarding the .htaccess files or any user that has found something similar.

    
asked by ivannaxara 14.06.2017 в 16:26
source

1 answer

1

In the Apache documentation there is a article about the Apache 2.2 to 2.4 update , in the that there is a section specific to the subject of authorization and how some policies (which you use ) change from one version to the other.

What Apache 2.2 was:

<FilesMatch "\.tpl$">
Deny from all
</FilesMatch>

In Apache 2.4 it should be:

<FilesMatch "\.tpl$">
Require all denied
</FilesMatch>
    
answered by 14.06.2017 / 16:43
source