1
0
Fork 0
mirror of synced 2024-05-05 13:03:54 +12:00

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

This commit is contained in:
Nick Sweeting 2023-06-13 16:43:37 -07:00 committed by GitHub
parent 0e0b06bef1
commit 58d784cdd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}