前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >nginx安装Fancy美化索引目录

nginx安装Fancy美化索引目录

作者头像
行 者
发布2018-03-26 15:19:56
1.2K0
发布2018-03-26 15:19:56
举报
文章被收录于专栏:运维技术迷运维技术迷
《nginx安装Fancy美化索引目录》
《nginx安装Fancy美化索引目录》

参考文档:官方帮助

代码语言:javascript
复制
[root@tokyo home]# wget http://nginx.org/download/nginx-1.10.1.tar.gz
[root@tokyo home]# git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex
[root@tokyo home]# gunzip -c nginx-1.10.1.tar.gz | tar -xvf -
[root@tokyo home]# cd nginx-1.10.1
[root@tokyo nginx-1.10.1]# ./configure --prefix=/usr/local/nginx/ --add-module=../ngx-fancyindex
[root@tokyo nginx-1.10.1]# make & make install
[root@tokyo nginx-1.10.1]# vim /usr/local/nginx/conf/vhost/dl.lianst.com.conf
  .....
   	 location / {
                fancyindex on;               # 开启fancy目录索引 
                fancyindex_exact_size off;   # 不使用精确大小.
                fancyindex_localtime on;     #使用本地时间
                #fancyindex_header ".heard.html";    #使用.heard.html作为头部文件,没有这个文件将会出现404错误.
                fancyindex_footer "/.footer.html";   #使用.footer.html作为底部文件,没有这个文件将会出现404错误.
                #fancyindex_css_href "fancyindex/css";
        }
 
[root@tokyo nginx-1.10.1]# lnmp restart

效果如下:

《nginx安装Fancy美化索引目录》
《nginx安装Fancy美化索引目录》
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档