home · contact · privacy
Fix irclogs location matching in nginx conf.
[config] / all_new_2018 / linkable_etc_files / web / etc / nginx / nginx.conf
index fa1f106e6bcb8209a685b3fcb4025183fd12813c..798d791f0ff88d62e483170d83af765b86462de2 100644 (file)
@@ -64,7 +64,13 @@ http {
             fastcgi_pass unix:/var/run/fcgiwrap.socket;
         }
 
-        location /irclogs/plomlompomtest/ {
+        location ~ /irclogs/([^/]+)/ {
+            auth_basic "$1 logs";
+            auth_basic_user_file /var/www/irclogs_pw/$1;
+            autoindex on;
+        }
+
+        location /irclogs/ {
             autoindex on;
         }
     }