From 58d784cdd8942d59d5dac64ec5f04d0b3f99b9e1 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 13 Jun 2023 16:43:37 -0700 Subject: [PATCH] limit nginx config to only serve archive directory instead of main data folder root --- etc/nginx.conf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/etc/nginx.conf b/etc/nginx.conf index 2fc55a29..3e43c756 100644 --- a/etc/nginx.conf +++ b/etc/nginx.conf @@ -34,12 +34,14 @@ http { server { listen 80 default_server; server_name _; - - root /var/www; + index index.html; autoindex on; - try_files $uri $uri/ $uri.html =404; + + location /archive { + root /var/www/archive; + } } }