Knowledgebase
The difference between Apache 2.2 VS Apache 2.4 (.htaccess)
Posted by Quote Lin on 28 August 2017 01:32 AM

The difference between Apache 2.2 VS Apache 2.4 

You might have the .htaccess file on the folder of web page.

If you upgrade from ADM 2.7 to ADm 3.0 , please remember to check if those .htaccess file follow the 

Appache 2.4 configuration. Please refer the following information to correct .htaccess file.


1) Deny All:
2.2 configuration:
Order deny,allow
Deny from all

2.4 configuration:
Require all denied
Allow All

2) Allow All:
2.2 configuration:
Order allow,deny
Allow from all

2.4 configuration:
Require all granted
Allow Host

3) Allow Host
2.2 configuration:
Order Deny,Allow
Deny from all
Allow from example.org
2.4 configuration:
Require host example.org

4) Directory should use : Require all granted
Example
<Directory /var/>
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>

5) FilesMatch : Order
Example:
<FilesMatch ".+\.phps$">
SetHandler application/x-httpd-php-source
Order Deny,Allow
Allow from all
</FilesMatch>


(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako Fusion