Jump to content

Apache 2.4 Access Control directives in .htaccess


pequeno

Recommended Posts

Posted

Hello, in "uploads" folder (for example), the .htaccess file have this Apache directive:

<Files ~ "^.*\.(php|cgi|pl|php3|php4|php5|php6|phtml|shtml|([a-z0-9]{32}))$">
    Order allow,deny
    Deny from all
</Files>

I think that this is for Apache 2.2, not for Apache 2.4

https://httpd.apache.org/docs/2.4/upgrading.html

What happens with the servers that use Apache 2.4? What is the correct directive for Apache 2.4?

Many Thanks.

 

 

 

Posted
1 hour ago, pequeno said:

What happens with the servers that use Apache 2.4? What is the correct directive for Apache 2.4?

I use Apache 2.4.35. In my htaccess file, directory uploads, directive is the same. Everything works well, I have not noticed issues.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...