nginx refresh 404 angular code example
Example: react nginx returns 404 after reload
Change location in Nginx to this code below
location / {
try_files $uri /index.html;
}
Change location in Nginx to this code below
location / {
try_files $uri /index.html;
}