I'm trying to remove the following notices from my error logs:
AH01797: client denied by server configuration: /var/www/html/example.com/xmlrpc.php
I previously had:
LogLevel notice
after reading, How to HIDE "client denied by server configuration:" error in log, I changed my code to:
#NameVirtualHost example.com:443
<VirtualHost *:443>
....
LogLevel notice access_compat:crit
ErrorLog /var/log/httpd/example.com/error.log
</VirtualHost>
however the notices persist after restarting httpd. How can I remove these notices.
I'm using Server version: Apache/2.4.34
.
The deny rule we use in our .htaccess
is:
<Files xmlrpc.php>
Order Deny,Allow
Deny from all
Allow from 192.168.0.2
</Files>