From b7a90830386a6314c1b0b1759ce02e92d15a7686 Mon Sep 17 00:00:00 2001 From: Miwory Date: Thu, 9 Apr 2026 12:36:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BA=D0=BE=D0=BD?= =?UTF-8?q?=D1=84=D0=B8=D0=B3=D0=B0=20nginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8349c29..339db36 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,4 +1,14 @@ -location /lists { - autoindex on; - try_files $uri $uri/ $uri.txt; +server { + listen 80; + root /usr/share/nginx/html; + + location / { + autoindex on; + try_files $uri $uri/ @lists; + } + + location @lists { + alias /lists; + try_files $uri.txt =404; + } }