Browse Source

limit nginx config to only serve archive directory instead of main data folder root

Nick Sweeting 2 years ago
parent
commit
58d784cdd8
1 changed files with 5 additions and 3 deletions
  1. 5 3
      etc/nginx.conf

+ 5 - 3
etc/nginx.conf

@@ -34,12 +34,14 @@ http {
     server {
         listen                      80 default_server;
         server_name                 _;
-
-        root                        /var/www;
+        
         index                       index.html;
         autoindex                   on;
-
         try_files                   $uri $uri/ $uri.html =404;
+
+        location /archive {
+            root                    /var/www/archive;
+        }
     }
 }