SvennD
Directory listing in Nginx
June 28, 2016

Directory listing in Nginx

Posted on June 28, 2016  •  1 minutes  • 50 words  •  Suggest Changes

By default, Nginx doesn’t put directory listing on, in a development system that’s a really useful feature (many, many projects) so I tend to put it on. autoindex on;

In the server block under location :

server {
    location / {
        autoindex on;
    }
}

Worked like a charm !

autoindex in action, showing the directory listing

 

Support

If you enjoyed this website, consider buying me a Dr. Pepper

Buy me a Dr PepperBuy me a Dr Pepper