Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

elieandraos's avatar

Is it me or New Site creation in forge is a pain in the ass ?

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 ?

0 likes
4 replies
Shovels's avatar

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?

elieandraos's avatar

weird thing is if put i put a php file with a phpinfo() in: /usr/share/nginx/html it takes effect ... mydomain.com/info.php works

MThomas's avatar

Did you reload/restart nginx?

sudo service nginx restart

Without it, it does not see the symlink and probably redirects to the default nginx locatoin

1 like

Please or to participate in this conversation.