https://github.com/aperezdc/ngx-fancyindex/
这里是nginx插件fancyindex的开源地址.
具体安装方法:

yum install subversion
cd /tmp
svn checkout https://github.com/aperezdc/ngx-fancyindex ngx-fancyindex
wget -c http://nginx.org/download/nginx-1.6.3.tar.gz
tar zxvf nginx-1.6.3.tar.gz
cd nginx-1.6.3
#./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_stub_status_module --add-module=/tmp/substitutions4nginx-read-only --add-module=/tmp/ngx-fancyindex-master (我个人的,还带其他模块)
./configure --add-module=/tmp/ngx-fancyindex-master
make && make install

location /{
fancyindex on;
fancyindex_exact_size off;
fancyindex_localtime on;
fancyindex_footer footer.html;
fancyindex_header header.html;
fancyindex_ignore footer.html header.html;
}

location ~ ^/soft(/.*)
{
fancyindex on;
fancyindex_exact_size off;
fancyindex_localtime on;
}

参数解释:
fancyindex on:开启fancy索引
fancyindex_exact_size off:不使用精确的大小,使用四舍五入,1.9M会显示为2M这样.如果开启的话,单位为字节
fancyindex_localtime on:使用本地时间
fancyindex_footer “myfooter.shtml”:把当前路径下的myfooter.shtml内容作为底部.文件不存在底部会出现404.

如果需要自定义footer.html和header.html文件,你可以需要修改ngx-fancyindex-master/template.h并重新编译安装Nginx。