Linux 常用工具
YUM
yum init system
create local repo yum
centos 7 init system
FTP
How to Install and Configure vsftpd on CentOS 6
vsftp install on centos 7
Email
aliyun ecs install email
postfix smtp on centos
centos 6 postfix smpt test
GIT
gogs install centos6
git command example
git format markdown
HTTP Web
apache exampe
h5ai web php file server
apache vhosgts code debug
Nginx Web
nginx install from source
nginx set directory autoindex
autoindex with h5ai web
nginx install pugin ngx-fancyindex
proxy internal vhost to web
dynamic and static by nginx
proxy directory second by nginx
nginx proxy gogs web
jenkns proxy from nginx
ssl certify by nginx
nginx threads fix to 9x
NTP
linux install ntp use asia date
VNC
vnc remote desktop
x11vnc on centos6
Firewall
iptables on centos 7
centos7 firewalld config
Kernel
centos kernel packages
kernel update to 3.10 on centos 6
SYSCTL 内核配置参数分析
NFS
centos6 install nfs servers
mount nfs to linux
mount nfs on centos 6
centos6 nfs verify permissions
SSH
ssh keygen rsa to client
ssh config diffent
Network
centos 7 config net-tool debug ifconfig
debug network card up or down
Samba
samba install on centos 6
samba config example
VIM
VIM using example
本文档使用 MrDoc 发布
-
+
首页
nginx install pugin ngx-fancyindex
# nginx install pugin ngx-fancyindex --- ## 我们开启了nginx的目录浏览功能。 # autoindex on; Nginx Web 服务器自带的目录浏览功能看起来并不是那么的美观,我们可以使用ngx-fancyindex插件来美化目录浏览功能。 首先下载nginx,下载地址:http://nginx.org/download/,选择合适的版本进行下载即可,我用的是军哥的lnmp一键包, 最后更新: 2015年10月28日16:13 GMT+8 国内。下载时wget需要加–no-check-certificate参数 # http://soft.vpser.net/lnmp/lnmp1.3beta-full.tar.gz # (476MB) 美国 # https://api.sinas3.com/v1/SAE_lnmp/soft/lnmp1.3beta-full.tar.gz MD5:159b52ad496477e34b80a44bd9146f46 # cd /usr/local/src/lnmp1.3-full/src/nginx-1.8.0 我们到https://github.com/aperezdc/ngx-fancyindex 下载ngx-fancyindex 命令:wget https://github.com/aperezdc/ngx-fancyindex/archive/master.zip 下载nginx安装包,wget http://nginx.org/download/nginx-1.8.0.tar.gz,注:这里下载的是1.8.0版本。 具体操作步骤: 解压缩Nginx及ngx-fancyindex压缩包 获取Nginx原有编辑配置 编译及安装ngx-fancyindex插件 ## 配置ngx-fancyinde插件 # ./configure --add-module=../ngx-fancyindex/ # make # make install ```html location /{ fancyindex on; fancyindex_exact_size off; fancyindex_localtime on; fancyindex_footer footer.html; fancyindex_header header.html; fancyindex_ignore footer.html header.html; } ``` ```bash fancy指令使用: fancyindex 语法: *fancyindex* [*on* | *off*] 默认值: fancyindex off 配置块: http, server, location 描述: 开启/关闭目录索引功能 fancyindex_css_href 语法: *fancyindex_css_href uri* 默认值: fancyindex_css_href 配置块: http, server, location 描述: 外置css路径,这个css将会替代掉现有的css样式。如果你会css,那你可以把索引列表做得更加漂亮.咱们ttlsa没有网页设计师,所以只能用自带的了^^ fancyindex_exact_size 语法: *fancyindex_exact_size* [*on* | *off*] 默认值: fancyindex_exact_size on 配置块: http, server, location 描述: 定义如何显示文件的大小,默认是on,on:文件大小使用精确值,单位为字节.off:单位为KB,MB,GB,如果含有小数点,将会四舍五入。例如1.9MB,将会显示为2MB。 fancyindex_footer 语法: *fancyindex_footer path* 默认值: fancyindex_footer 配置块: http, server, location 描述: 指定哪个文件嵌入到索引页面的底部,效果请看本文的第一张图片 fancyindex_header 语法: fancyindex_header path* 默认值: fancyindex_header 配置块: http, server, location 描述: 指定哪个文件嵌入到索引页面的头部.用法和fancyindex_footer类似 fancyindex_ignore 语法: fancyindex_ignore string1 [string2 [… stringN]] 默认值: No default. 配置块: http, server, location 描述: 哪些文件/目录隐藏掉,如果你的nginx支持正则,那么可以使用正则表达式来过滤 例如我想隐藏dir打头的文件或目录以及文件filea.txt,配置如下: fancyindex_ignore “dir*” “filea.txt” 效果如下: fancyindex_localtime 语法: fancyindex_localtime* [*on* | *off*] 默认值: fancyindex_localtime off 配置块: http, server, location Description: 使用当地时间显示文件的创建时间,默认是off(GMT时间) ```
Bobby
2021年12月20日 23:14
分享文档
收藏文档
阅读
130
上一篇
下一篇
微信扫一扫
复制链接
手机扫一扫进行分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码