Nginx显示目录下的内容、限速
2015-10-27 17:08
656 查看
location /download/ { root html; limit_rate 100k; #限制用户的速率为100KB/s limit_rate_after 5m; #当用户下载5m内容时,开始限速 autoindex on; # 显示目录 autoindex_exact_size off; # 显示文件大小(实际大小,单位是bytes,默认为on),当设置为off时,以M/K为单位显示大小。 autoindex_localtime on; # 显示文件时间(默认为off,显示的GMT时间),可以设置为on,则显示的是localtime时间。 }
本文出自 “HeZhang” 博客,请务必保留此出处http://hezhang.blog.51cto.com/1347601/1706868
相关文章推荐
- Nginx做NodeJS应用负载均衡配置实例
- [nginx] 网上最全面nginx教程(近100篇文章整理)
- 106 nginx 405错误解决
- Nginx之location 匹配规则详解
- mac上面启用80端口
- linux下安装 nginx 支持ssl
- linux环境下配置nginx虚拟域名
- mac os x下nginx开机自启动
- 使用nginx负载平衡
- centos下配置nginx支持php
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
- Nginx_修改Web服务器头信息(Header)里的Server值[转]
- Mac OS X 下编译安装 Nginx
- CentOS 7 用户怎样安装 LNMP(Nginx+PHP+MySQL)
- nginx禁止访问.git文件的设置教程(nginx过滤.git文件夹)
- nginx重写规则报nginx: [emerg] directive "rewrite" is not terminated by ";"
- 安装nginx和启动命令
- 启动php-fpm和nginx
- keepalived实现nginx的高可用(双主模型)
- nginx+php