[odrs-web] Missing slash + turn autoindex to off



commit 58dcadc3e18bcb644939cf3f8f3d2aee3c0787c0
Author: Andrea Veri <averi redhat com>
Date:   Thu Apr 28 17:37:22 2022 +0200

    Missing slash + turn autoindex to off

 nginx.conf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/nginx.conf b/nginx.conf
index ec5ea1d..2a095a6 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -46,7 +46,8 @@ http {
         error_log /dev/stderr;
 
         location /static/ {
-            root /tmp/static;
+            root /tmp/static/;
+            autoindex off;
         }
 
         location ~* \.(?:ico|css|svg|js|json|jpe?g|png)$ {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]