Fix Angular 404 on reload Nginx
To keep it short, here is the code you need to replace in /etc/nginx/conf.d/default.conf You may want to update server_name to your domain name if you are not deploying in docker. Otherwise, this config works with docker. Give it a try, you’ll see that the 404 page is gone when you refresh your site.