Nginx with Hugo - Divisions by zero

Hi, beginer here. Im currently trying to make a static website using Nginx and Hugo https://mydomain.com [https://mydomain.com] works but when I open https://mydomain.com/posts/ [https://mydomain.com/posts/] or https://zesfca.com/about/ [https://zesfca.com/about/] Nginx gives me a 404 not found. Thank you very much!

You missed replacing your domain in this post, so I could try your site. It looks like your rewrite works fine, but getting the 404 here as well.

What happens when you run it locally? (hugo serve) Does it work?

Also, run: ls /var/www/mydomain.com/public/ if possible and share the results here. It should contain folders matching your site setup.

I put my actual domain on my server but canged it to myromain on this post for lrivacy reasons
Is your domain zesfca.com?