no need for explicit mappings as we have folder structure
This commit is contained in:
18
nginx.conf
18
nginx.conf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user