ifVersion - does not work in .htaccess
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?
# httpd -M
...
version_module (shared)
...
Despite proper entry in .htaccess, I can still access files in that protected directory.
order allow,deny
deny from all
= 2.4>
Require all denied
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?
/etc/redhat-release:CentOS Linux release 7.6.1810 (Core)
/usr/local/cpanel/version:11.80.0.22
/var/cpanel/envtype:hyper-v
CPANEL=releasePlease sign in to leave a comment.
Comments
0 comments