mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 04:03:06 +00:00
limit nginx config to only serve archive directory instead of main data folder root
This commit is contained in:
parent
0e0b06bef1
commit
58d784cdd8
1 changed files with 5 additions and 3 deletions
|
@ -34,12 +34,14 @@ http {
|
||||||
server {
|
server {
|
||||||
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue