Enable and disable directory listing in nginx

Enable and disable directory listing in nginx

#Enable nginx directory listing
server{
	location /yamicode{
		autoindex on;
	}
}
#Disable nginx directory listing
server{
	location /yamicode{
		autoindex off;
	}
}