为了简单共享文件,有些人使用svn,有些人使用ftp,但是更多得人使用索引 index 功能。apache得索引功能强大,并且也是最常见得,nginx得auto index实现得目录索引偏少,而且功能非常简单。先来看看我们得效果图。 nginx auto index索引效果图 nginx配置 location . autoindex on 开启 autoindex localtime on 开启显 ...
2015-09-05 20:22 0 3363 推荐指数:
这篇文章主要介绍了Nginx中的root&alias文件路径及索引目录配置,顺带讲解了root和alias命令的用法,需要的朋友可以参考下 root&alias文件路径配置 ...
编译:./configure --prefix=/usr/local/nginx --add-module=../ngx-fancyindex-master 配置: location / { fancyindex on; 开启fancy索引 fancyindex_exact_size ...
server { listen 8888; # 监听端口 server_name peer; # 服务名 charset utf-8; # 字符集,可处理中文乱码 location / { autoindex on; # 开启目录浏览 ...
命令 默认值 值域 作用域 EG autoindex off on:开启目录浏览;off:关闭目录浏览 http, server, location autoindex ...
https://segmentfault.com/a/1190000012606305 在项目中有一个功能需要在浏览器页面中浏览服务器的目录。服务器使用Nginx,而Nginx提供了相应的ngx_http_autoindex_module 模块,该模块提供了我们想要的功能。 Nginx ...
参考文章:https://blog.csdn.net/whatday/article/details/50649461 ...