Nginx打开目录浏览功能(autoindex)
2014-07-28 17:28
232 查看
http://blog.licess.com/nginx-autoindex/
Nginx默认是不允许列出整个目录的。如需此功能,
打开nginx.conf文件,在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去:
autoindex_exact_size off;
默认为on,显示出文件的确切大小,单位是bytes。
改为off后,显示出文件的大概大小,单位是kB或者MB或者GB
autoindex_localtime on;
默认为off,显示的文件时间为GMT时间。
改为on后,显示的文件时间为文件的服务器时间
location /images {
root /var/www/nginx-default/ibugaocn;
autoindex on;
}
详细参照:http://wiki.nginx.org/NginxChsHttpAutoindexModule
Nginx默认是不允许列出整个目录的。如需此功能,
打开nginx.conf文件,在location server 或 http段中加入
autoindex on;
另外两个参数最好也加上去:
autoindex_exact_size off;
默认为on,显示出文件的确切大小,单位是bytes。
改为off后,显示出文件的大概大小,单位是kB或者MB或者GB
autoindex_localtime on;
默认为off,显示的文件时间为GMT时间。
改为on后,显示的文件时间为文件的服务器时间
location /images {
root /var/www/nginx-default/ibugaocn;
autoindex on;
}
详细参照:http://wiki.nginx.org/NginxChsHttpAutoindexModule
相关文章推荐
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)以及常见问题解决方案
- Nginx打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- Nginx怎么打开目录浏览功能(autoindex)
- Nginx打开目录浏览功能(autoindex)
- nginx开启目录浏览下载功能(autoindex)
- Nginx目录浏览功能(autoindex)
- 在Nginx浏览器中打开目录浏览功能
- Nginx打开目录浏览功能
- nginx打开目录浏览功能
- NGINX服务器打开目录浏览功能
- nginx的autoindex-目录浏览还有其它两个参数
- Nginx打开目录浏览功能或者用nginx做文件服务器替代samba
- Nginx学习历程_3_配置Nginx打开目录浏览功能
- nginx打开目录浏览功能