Skip to content
Advertisement

Laravel on nginx displays 403, but my path is correct

I have a digitalocean droplet and I want to run a laravel project. I used this tutorial https://www.digitalocean.com/community/tutorials/how-to-deploy-a-laravel-application-with-nginx-on-ubuntu-16-04

The thing is that it displays a 403. I saw on other questions that they missed the public directory or they had the path wrong, but in my case I got a 403 when I have the public dir correct, and a 500 when I have it wrong.

My nginx error log says

JavaScript

My nginx sites-available/my-site.com

JavaScript

Advertisement

Answer

The answer is right there in your nginx config. It is also shown in the tutorial you link to.

JavaScript

You have not added index.php.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement