Question

403 Forbidden Error

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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