gateway issue

This commit is contained in:
2026-07-14 11:06:01 +05:30
parent 1a9a20f5d9
commit 46f70815af
2 changed files with 14 additions and 32 deletions

View File

@@ -1,19 +1,15 @@
events {}
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;
# Next.js static export creates page.html (e.g. contact.html) for routes.
# We check $uri.html to allow clean URLs without the .html extension.
try_files $uri $uri.html $uri/ /404.html;
# This line forces Nginx to pass routing back to React Router
try_files $uri $uri/ /index.html;
}
}
}