Nginx Directory Listing:
Configuration Example:

Refer to the following:
server{listen 80 ;server_name www.123.com ;index index.html index.htm index.php;root /home/wwwroot/123;autoindex on;autoindex_exact_size on;autoindex_localtime on;………
}
To enable the directory listing feature, just add the following:
autoindex on;autoindex_exact_size on;autoindex_localtime on;