added changes that prevent nginx welcome error

This commit is contained in:
Carter 2026-01-19 14:53:03 -06:00
parent d7562bc1bd
commit 472519dc99
2 changed files with 7 additions and 7 deletions

View file

@ -78,18 +78,18 @@ http {
}
# Redirect old /index.html requests to new file
location = /index.html {
return 301 /indexV2.html;
}
# location = /index.html {
# return 301 /indexV2.html;
# }
# Serve indexV2.html directly without redirect loop
location = /indexV2.html {
location = /index.html {
root /usr/share/nginx/html;
}
# Fallback for SPA routing all unmatched routes go to indexV2.html
location / {
try_files $uri /indexV2.html;
try_files $uri /index.html;
}
}