“AH01630: client denied by server configuration” while accessing backend
-
Hi there,
we are just configuring the Matomo Plugin and found that our IP is blocked by the webserver after a few clicks in the Matomo admin pages in the WordPress backend.It took me a while to find that the Matomo backend tries to access /wp-content/plugins/matomo/app/config/global.ini.php, even though that is forbidden by the .htaccess file in /wp-content/plugins/matomo/
The file itself contains the warning NOT to modify it but to contact Matomo in case of issues. As I consider this more likely to be a plugin issue, I’m posting this here.
The issue can be reproduced easily. Config: WP 6.1.1, Matomo Plugin 4.13.5, Twenty TwentyTwo theme, no other plugins active, PHP 8.0
Every attempt to access Matomo Analytics / First steps causes the following error in the apache error_log:[Tue Mar 14 21:11:59.402619 2023] [authz_core:error] [pid 1607997] [client 94.16.33.171:0] AH01630: client denied by server configuration: /var/www/vhosts/hoeckner.com/staging.hoeckner.com/wp-content/plugins/matomo/app/config/global.ini.php, referer: https://staging.hoeckner.com/wp-content/plugins/matomo/app/config/global.ini.php
If I rename
/wp-content/plugins/matomo/.htaccess
to/wp-content/plugins/matomo/.htaccess.bak
the error does not show again.At the top of the htaccess file you’ll find
# Do not allow access to any php file directly unless it is index/matomo.php
Well, I guess it does just that. I guess the plugin forces the client browser to attempt accessing the config file, and should just not do that.That would usually not cause any issue, besides the error being logged.
But in my case, the webserver is running fail2ban, and that blocks the client IP after 6 attempts to access that config file. Not funny, my customer was locked out of his own website for at least 10 minutes several times….Can you fix that?
Thanks,
Christian Toller
tethis IT
Vienna, AustriaThe page I need help with: [log in to see the link]
- The topic ‘“AH01630: client denied by server configuration” while accessing backend’ is closed to new replies.