Contact Support : +64 220 256 070

Aimvm
Blog

Error: Client denied by server configuration

Posted on: August 21, 2015

 

While accessing websites you might encounter access denied errors. When ever you have access denied errors the first thing to check is the permission and ownership of the account files and then the apache configuration. But sometimes doing that won’t get the issue resolved.

Below is an example of denial error which is not caused by bad permissions or ownership.

Error: Client denied by server configuration

The above error means that the access to the directory on the server was denied by an Apache configuration.

To troubleshoot this error you need to do the following.

1) Make sure you are not behind any kind of firewall.

2) Find the IP address and see if your IP is logged in the deny files or IPtables.

3) See what the logs says about the error.

tail -f /usr/local/apache/logs/error_log | grep username

[Sun Dec 07 14:04:38 2008] [error] [client 203.193.165.98] client denied by server configuration: /home/username/public_html/index.php

4) Finally you need to check the .htaccess file and see whether any denial codes are mentioned in it.

If have denial codes then uncomment that line as given below.

 

<Files *.php>
Order Deny,Allow
#Deny from all
</Files>

 

You should be able to access the website back as normal.

 

 

Search Blog