From f81cb8e03fd01cf129ea837504b09538d2370df1 Mon Sep 17 00:00:00 2001 From: joglomedia Date: Fri, 22 Nov 2019 23:51:27 +0700 Subject: [PATCH] Protect with basic auth, fix issue #56 --- etc/nginx/sites-available/default | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/etc/nginx/sites-available/default b/etc/nginx/sites-available/default index 98e3359..fc85765 100644 --- a/etc/nginx/sites-available/default +++ b/etc/nginx/sites-available/default @@ -151,15 +151,13 @@ server { include /etc/nginx/includes/error_pages.conf; location /lcp { - # First attempt to serve request as file, then - # as directory, then fall back to index.html - try_files $uri $uri/ /index.html; + try_files $uri $uri/ /index.php?$args; # Uncomment to enable naxsi on this location #include /etc/nginx/naxsi.rules; # Uncomment to enable auto index - autoindex off; + #autoindex on; # Set basic auth. allow all;