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; + } }