I followed this instruction to set up Nginx on Debian (via Linode platform) https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-debian-10 Everything is good until the last step where it shows 403 instead of the index.html (typing mydomain.com).
I’m pretty stuck. I’d be grateful if you can help me detect what the problem is.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!
Make sure that you assign ownership of the directory in which the
index.htmlfile must be in the root configured directory that you added. So, if your config looks like this:
index.htmlfile should be in the
If you do all of this and the 403 still shows up, then check the Nginx error log to get some more information on what the problem could be. To do that just run this command:
Let me know if this helps.
That’s awesome. It works, many thanks for your detailed instructions. It saved me!