操作背景:lnmp1.2
步骤:
cd ~
git clone https://github.com/aperezdc/ngx-fancyindex.git
然后进入lnmp1.2目录下的include,找到upgrade_nginx.sh
在脚本参数里的Nginx_Modules_Arguments 的''里加上--add-module=/root/ngx-fancyindex
cd /root/lnmp1.2-full/include
vi upgrade_nginx.sh #这里增加要编译的模块--add-module=/root/ngx-fancyindex
cd /root/lnmp1.2-full/
./upgrade.sh
选择升级nginx,版本输入现在的版本,2分钟就OK了。
然后在域名的配置加上:
fancyindex on;
fancyindex_exact_size off;
fancyindex_localtime on;
要修改模板的话,请修改ngx-fancyindex下的template.h
修改之后再编译一次就可以了。
以上来自http://www.awkxy.com/lnmp_fancy.html
相关:使用FancyIndex插件美化nginx文件目录列表
最后编辑时间为: 2016-08-29 12:44:52
本站文章除注明转载/出处外,
均为本站原创或翻译,转载前请务必署名。