What have you got in the conf file for root? It should be something along the lines of
root /home/vagrant/site_name/public
If you do have this in the conf, does the folder it's pointing to actually exist?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i have my digital ocean server linked with forge, created my first laravel project and everything was smooth until... I decided to create a new site, connect it to git, deploy, and the result was a nginx 404 error page. (also adding the env variables showed always the loading icon as if they are not being added and still in process though it should be quick)
after some digging, i managed to create a conf for my new site in sites-available and a sym link in the sites enabled. Now i am receiving a nginx welcome screen :/
Any help ?
Please or to participate in this conversation.