Hi all,
Problem: mod_version is loaded but a directive IfVersion does not work in my Apache 2.4.39 (cPanel).
Despite proper entry in .htaccess , I can still access files in that protected directory.
If I change .htaccess to one line:
Require all denied
files are still accessible in that folder.
If I change .htaccess to two lines:
order allow,deny
deny from all
then it works ok.
I have more than 30 htaccess files with the directive IfVersion and I would like to avoid change them manually.
Please could you advise how to fix it?
Problem: mod_version is loaded but a directive IfVersion does not work in my Apache 2.4.39 (cPanel).
Code:
# httpd -M
...
version_module (shared)
...
Code:
<IfVersion < 2.4>
order allow,deny
deny from all
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
Require all denied
files are still accessible in that folder.
If I change .htaccess to two lines:
order allow,deny
deny from all
then it works ok.
I have more than 30 htaccess files with the directive IfVersion and I would like to avoid change them manually.
Please could you advise how to fix it?
Code:
/etc/redhat-release:CentOS Linux release 7.6.1810 (Core)
/usr/local/cpanel/version:11.80.0.22
/var/cpanel/envtype:hyper-v
CPANEL=release