trying nginx conf change-up

This commit is contained in:
Carter 2025-06-05 10:38:03 -06:00
parent 5545271322
commit 9c94585de0
2 changed files with 14 additions and 22 deletions

View file

@ -52,27 +52,34 @@ http {
}
server {
listen 80;
listen 80;
listen [::]:80;
root /usr/share/nginx/html;
index indexV2.html;
access_log /dev/stdout;
error_log /dev/stderr error;
access_log /dev/stdout;
error_log /dev/stderr error;
expires $cache_expires;
location / {
try_files $uri /indexV2.html;
}
# Redirect old /index.html requests to new file
location = /index.html {
return 301 /indexV2.html;
}
# Serve indexV2.html directly without redirect loop
location = /indexV2.html {
root /usr/share/nginx/html;
}
# Fallback for SPA routing all unmatched routes go to indexV2.html
location / {
try_files $uri /indexV2.html;
}
}
# Healthcheck
server {
listen 8080;