How To Switch On Directory Listing in Nginx

Assuming you are utilizing Nginx web server and you need to show organizer in Nginx by web you really want to change “autoindex on; in your conf record”, By default we can’t open registry from Nginx web.

To switch on Directory listing : Open your nginx conf and change

server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
autoindex on; #for enable directory listing
server_name _;

location / {
try_files $uri $uri/ =404;
}

}