disabling index in files location
This commit is contained in:
parent
03e326ce83
commit
d6e5d3a5a8
1 changed files with 3 additions and 1 deletions
|
@ -10,7 +10,9 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /files/ {
|
location /files/ {
|
||||||
root /opt/www/; # will at the end serve /opt/www/files/
|
root /opt/www/; # will at the end serve /opt/www/files/
|
||||||
|
index ___i; # we really need no index here, just listing files
|
||||||
|
|
||||||
autoindex on;
|
autoindex on;
|
||||||
autoindex_format json;
|
autoindex_format json;
|
||||||
disable_symlinks off;
|
disable_symlinks off;
|
||||||
|
|
Loading…
Reference in a new issue