Fix nginx configuration override

This commit is contained in:
2026-06-06 12:33:04 +05:30
parent d672dd2bd6
commit c054da9d0d
2 changed files with 10 additions and 17 deletions

View File

@@ -1,18 +1,11 @@
events {}
server {
listen 80;
server_name localhost;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
# This line forces Nginx to pass routing back to React Router
try_files $uri $uri/ /index.html;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
# This line forces Nginx to pass routing back to React Router
try_files $uri $uri/ /index.html;
}
}