From 09405a33153e6b256c599b1f418ad89face9e1f5 Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Sun, 2 Nov 2025 01:55:00 +0530 Subject: [PATCH] fixes --- nginx.conf | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 4da12b2..dcfe8cd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,15 +1,24 @@ server { listen 80; - server_name docs.aetoskia.com; + server_name _; # default catch-all + # Root for the main landing page + root /usr/share/nginx/html; + + # Serve the index page by default + index index.html; + + # Explicit location for /mongo-ops/ location /mongo-ops/ { - alias /srv/docs/mongo-ops/site/; + root /usr/share/nginx/html; index index.html; } - # Optional: main landing page + # Optional: serve static assets (CSS, JS, images) location / { - alias /srv/docs/_index/; - index index.html; + try_files $uri $uri/ /index.html; } + + access_log /var/log/nginx/access.log; + error_log /var/log/nginx/error.log; }