autoindex hiding dot folders

itpp2012 nginx-forum at nginx.us
Thu May 8 07:23:50 UTC 2014


Very useful patch but the naming is not correct, . and .. or not your
typical hidden type, autoindex_show_dot_folders would make more sense.

And "if (ngx_de_name(&dir)[0] == '.') {" will exclude files which start with
a dot, 

if (ngx_de_name(&dir) == '.') or (ngx_de_name(&dir) == '..') {, would be
better IMHO.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,216751,249925#msg-249925



More information about the nginx mailing list