Authz_core:error Client Denied by Server Configuration

Error:

Today, I have upgraded Apache to 2.4 from 2.2 on one of our clients server. It is a Ubuntu 12.04 LTS server. After upgrading Apache we found following errors in some of our websites.
[authz_core:error] [pid 29422] [client 12.34.56.78:46618] AH01630: client denied by server configuration: /home/XXX/public_html/favicon.ico, referer: http://example.com/index.php

Solution:

In Apache 2.4 there are few changes do be done in .htaccess or VirtualHost setting. You need to replace Allow from and Deny from options with Require all granted and Require all denied as given below.
From:-    Order allow, deny   Allow from all  To:-    Require all granted  
From:-   Order allow, deny  Deny from all  To:-   Require all denied  

Thanks for Visit Here

Comments