2017-03-13 11:24:10 0 Comments Nginx Boy.Lee

Nginx List Folder's Files Structure, Size, Modify Info

In some Nginx Dev condition, need list the folder's all files with some info, can be done with the follow config


location / {   
    root /data/www/file   #web Path;
    autoindex on;  #open list function;
    autoindex_exact_size off;  #show file size with b as unit;
    autoindex_localtime on;  #show modify info;