1
I had the same issue a couple of hours ago. My laravel 10 application was working as expected and suddendly stopped working (I did not deploy a new version).
I realized that nginx version changed to 1.24 so you can check this part.
What worked for me was to have the same config file you have in /etc/nginx/sites-available in /etc/nginx/sites-enabled
You could try copy this file like this:
cp /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
Considering default is the filename of your config you mentioned.
Also you could make a symbolic link if you want
ln -s sites-available/default sites-enabled/default
You may have to remove sites-enabled/default before doing the link
Then restart nginx
service nginx restart
I do not know if this is the best solution, but fixed the problem
Hope this works for you