autoindex on;

    location = / {
        autoindex off;
    }