Enable directory listing in Nginx

server {
    listen 80;
    server_name mots-mockup.devditto.com;
	root /var/www/html;
	index index.html index.htm index.nginx-debian.html;

    location / {
		autoindex on;
	}
}

add autoindex on for enable list directory

server {
    listen 80;
    server_name mots-mockup.devditto.com;
	root /var/www/html;
	index index.html index.htm index.nginx-debian.html;

    location / {
		autoindex on; # add here
	}
}