Report this

What is the reason for this report?

AH01797: client denied by server configuration

Posted on August 6, 2021

Hi,

Today morning i was trying to access A wordpress and a Moodle app in the dropplet, but i am receiving the 403 Forbidden error when accesing admin panel in WP and in Moodle in general. I have checked the hosts configuration files and updated with the appropiate rules, also i checked permissions on folders and files an nothing resolves the issue.

I am detecting some wierd behavior on .htaccess files, whenever i want to change the rules in the htaccess file in wordpress installation the changes are reverted, despite i disbled all plugins manually and deleted the file, it appears again and maybe one of the rules in this file is causing the forbidden error.

I was trying to do anything possible, but now i am stuck and cannot try anything else, but restore the dropplet from a backup.

Any hint would be great,



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello, @JuanSaudade

You can examine the Apache/Nginx error log in order to track down the source of the issue here.

Also, you can double-check the file/folder ownership and permissions and make sure that they’re correct.

The log can be accessed using the cat, tail or the less command

  1. sudo tail -n 2 /var/log/apache2/error.log

Substitute the number of lines that you would like to examine in place of the number 2 in the command.

If you’re using Nginx you can use the following command:

  1. tail -n 2 /var/log/nginx/error.log

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.