Solving Apache error client denied by server configuration

As part of our Server Support Services, we have helped numerous clients solve Apache related issues.

In this context, we shall look into what triggers this error and how to fix it.

Why does apache error client denied by server configuration occur?

Most Apache web server users experience this error after they upgrade their apache server to a higher version.
What this error signifies is that there is an issue in the Apache configuration file making access to the directory not accessible. When an upgrade of apache is done, some modification in the access control will take place which affects authentication and authorization processes.

How to solve apache error client denied by server configuration

Just recently, a customer contacted us that he is seeing an error message like;

client denied by server configuration: /var/www/

To fix this error, initially we checked the apache configuration file "httpd.conf" and modified it with the following attributes from;

<Directory /var/www/>
Order allow,deny
Allow from all


<Directory /var/www/>
Require all granted

You will see that all access is granted in this case to fix the permission issue.

In other cases where the configuration file contains instruction to deny all request like this;

<Directory /var/www/>
Order deny,allow
Deny from all

Then, modify it to;

<Directory /var/www/>
Require all denied

Furthermore, where you have the configuration as below;

<Directory /var/www/>
Order Deny,Allow
Deny from all
Allow from

You should update it as;

<Directory /var/www/>
Require host

The bone of contention here is that the instruction "Deny from all" is replaced by "Require all denied" while "Allow from all" is replaced with "Require all granted".

Therefore, it is important to check the configuration file for directory permission instructions such as "Order deny,allow" as well as "Order allow,deny" and remove them if it exist.

Need support in solving Apache errors? Consult us today.


Are you facing "Apache error client denied by server configuration" web server issue? Let us solve it for you!

For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on

Also for Tech related tips, Visit

Focus on your business, not your servers.

Click Here to Learn More

Recent Post