Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Error: Client denied by server configuration  (Read 2407 times)

0 Members and 2 Guests are viewing this topic.

vaishakp

  • Guest
Error: Client denied by server configuration
« on: November 28, 2018, 10:00:51 pm »
The following error can be found in /var/www/vhosts/example.com/logs/error_log

[access_compat:error] [pid 13317:tid 140073563543296] [client 203.0.113.2:51234] AH01797: client denied by server configuration: /var/www/vhosts/example.com/httpdocs/


Cause:

Apache 2.4 is installed, but the file .htaccess contains authorization and authentication entries with syntax from the 2.2 version.

Resolution:
In Plesk Interface:

1. Log into Plesk.
2. Go to Domains > example.com > File Manager and click on the name of the file .htaccess.
3. Replace the directives as follows:

 Before:
    Order allow,deny
    Allow from all

 After:
    Require all granted

Click OK or Apply to save the changes.

OR

In CLI:

1. Connect to the server using SSH.
2. Open the file /var/www/vhosts/example.com/httpdocs/.htaccess for editing.

Change the following entries:
   Order allow,deny
   Allow from all
 to
   Require all granted