enable directory listing in nginx

From WebHostingNeeds.com
Jump to: navigation, search

To enable directory listing in Nginx, add

autoindex on;

To server entry.

For example

    server {
        listen       174.36.130.244:80;
        server_name  dn.bizhat.com;
        autoindex on;
        location / {
            root   /backup/dn/;
            index  index.html index.htm;
        }
    }



nginx