no need for explicit mappings as we have folder structure

This commit is contained in:
2025-11-20 23:20:46 +05:30
parent c4450cb4e6
commit 900973063a

View File

@@ -8,24 +8,6 @@ server {
# Serve the index page by default
index index.html;
# Explicit location for /mongo-ops/
location /mongo-ops/ {
root /usr/share/nginx/html;
index index.html;
}
# Explicit location for /api/blog/
location /api/blog/ {
root /usr/share/nginx/html;
index index.html;
}
# Explicit location for /tutorials/
location /tutorials/ {
root /usr/share/nginx/html;
index index.html;
}
# Optional: serve static assets (CSS, JS, images)
location / {
try_files $uri $uri/ /index.html;