trying nginx conf change-up
This commit is contained in:
parent
5545271322
commit
9c94585de0
2 changed files with 14 additions and 22 deletions
21
nginx.conf
21
nginx.conf
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue