mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-08 15:46:42 +02:00
limit nginx config to only serve archive directory instead of main data folder root
This commit is contained in:
@@ -35,11 +35,13 @@ http {
|
|||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
root /var/www;
|
|
||||||
index index.html;
|
index index.html;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
||||||
try_files $uri $uri/ $uri.html =404;
|
try_files $uri $uri/ $uri.html =404;
|
||||||
|
|
||||||
|
location /archive {
|
||||||
|
root /var/www/archive;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user