Report this

What is the reason for this report?

403 Forbidden Error

Posted on March 29, 2020

I tried doing this: https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-centos-7

I got 403 Forbidden - nginx/1.0.15 error when i accessed example.com. I tried adding directory to virtualhost but still got error 403 also changed permissions to 755. Thanks in advance.



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.

Hi @ixtambay,

The error you’ve mentioned is actually related to an Nginx setup rather than an Apache one.

Having said that, can you please post your virtual configuration file of the domain example.com so that I can let you know if there is an actual problem with it.

Additionally, in the said virtual host file, you most probably specified a an Error Log, check the error log to see why the 403 error is being generated.

Regards, KDSys

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.