Hi, beginer here. Im currently trying to make a static website using Nginx and Hugo https://mydomain.com works but when I open https://mydomain.com/posts/ or https://zesfca.com/about/ Nginx gives me a 404 not found. Thank you very much! Mydomain.com is not my real domain, I replaced it for privacy reasons
Nginx.conf is default
Config in /etc/nginx/sites-available here.
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 privacy reasons