为了简单共享文件,有些人使用svn,有些人使用ftp,但是更多得人使用索引(index)功能。apache得索引功能强大,并且也是最常见得,nginx得auto_index实现得目录索引偏少,而且功能非常简单。先来看看我们得效果图。 nginx auto_index索引效果图 ...
为了简单共享文件,有些人使用svn,有些人使用ftp,但是更多得人使用索引(index)功能。apache得索引功能强大,并且也是最常见得,nginx得auto_index实现得目录索引偏少,而且功能非常简单。先来看看我们得效果图。 nginx auto_index索引效果图 ...
以下是我的项目用到的一份配置文件#user nobody;worker_processes 4; #进程数,一般cpu是几核就写多少#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs ...
命令 默认值 值域 作用域 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 ...
Nginx 默认是不允许列出整个目录的,需要配置 Nginx 自带的 ngx_http_autoindex_module 模块实现目录浏览功能 。 autoindex_exact_size off;默认为on,显示出文件的确切大小,单位是bytes。改为off后,显示出 ...