From 135ca8d107e91274725f1238e724b5d3826eadca Mon Sep 17 00:00:00 2001 From: NikkeDoy Date: Mon, 18 May 2026 22:17:19 +0300 Subject: [PATCH] :memo: | Fix documentation... again... again. --- docs/NGINX-STATIC-HOSTING.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/NGINX-STATIC-HOSTING.md b/docs/NGINX-STATIC-HOSTING.md index 9facbc6..5b0e52c 100644 --- a/docs/NGINX-STATIC-HOSTING.md +++ b/docs/NGINX-STATIC-HOSTING.md @@ -74,8 +74,8 @@ server { root /var/www/shelter-plugins; index index.html; - # Serve plugin directories (each plugin has its own page and files) - location /gpt-unslothed { + # Serve the main index page and shared resources + location / { try_files $uri $uri/ =404; } @@ -83,11 +83,6 @@ server { location = /404.html { internal; } - - # Redirect all other requests to 404 - location / { - return 404; - } } ``` @@ -95,7 +90,8 @@ server { - Change `plugins.your-domain.com` to your actual domain or IP address - The `try_files` directive lets NGINX auto-detect the correct MIME type for each file (HTML, CSS, JS, JSON) -- Each plugin directory is served from its own URL path (e.g., `http://plugins.your-domain.com/gpt-unslothed/`) +- The main index is at `http://plugins.your-domain.com/` +- Plugin pages are at `http://plugins.your-domain.com/gpt-unslothed/` ## Step 4: Enable the Site