From 4f3711160412b7eaaf433e7463134613d2513640 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 21 Oct 2021 23:26:29 +0200 Subject: [PATCH] improve regex --- templates/files/nginx/sites/files.l3d.ch_tls.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/files/nginx/sites/files.l3d.ch_tls.conf b/templates/files/nginx/sites/files.l3d.ch_tls.conf index b08b0f0..5cf6478 100644 --- a/templates/files/nginx/sites/files.l3d.ch_tls.conf +++ b/templates/files/nginx/sites/files.l3d.ch_tls.conf @@ -16,18 +16,25 @@ server { autoindex off; try_files $uri $uri/ =418; } + location /share/ { autoindex on; autoindex_exact_size off; autoindex_localtime on; } + location /fff/ { + autoindex on; + autoindex_exact_size off; + autoindex_localtime on; + } + location = /hidden/ { autoindex off; return 418; } - location ~ /hidden/[0-9a-zA-Z_]+/ { + location ~ /hidden/[\S+]+/ { autoindex on; autoindex_exact_size off; autoindex_localtime on;