宝塔nginx 安装 Fancyindex

时间:2020-09-05 23:19:09   收藏:0   阅读:59

首先下载到本地

git clone https://github.com/aperezdc/ngx-fancyindex

具体网址为:

https://www.nginx.com/resources/wiki/modules/fancy_index/

然后

先卸载Nginx,然后安装,安装选择编译安装,添加自定义模块

 

--add-module=/www/server/nginx/src/ngx-fancyindex

具体路径看本地

 

技术分享图片

然后等待编译,

然后:成功~

然后,开启:

location / {
  fancyindex on;              # Enable fancy indexes.
  fancyindex_exact_size off;  # Output human-readable file sizes.
}

技术分享图片

 

原文:https://www.cnblogs.com/qianjiashi/p/13619138.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!