disabling index in files location

This commit is contained in:
Mohammad Naghavi 2016-02-12 16:10:23 +01:00
parent 03e326ce83
commit d6e5d3a5a8

View file

@ -11,6 +11,8 @@ server {
location /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_format json;
disable_symlinks off;