摘要:
显示目录可以提供文件下载,方便文件共享时用到,mark一下。 1. 如何让nginx显示文件夹目录 vi /etc/nginx/conf.d/default.conf 添加如下内容: location / { root /data/www/file //指定实际目录绝对路径; autoindex o 阅读全文
posted @ 2019-11-29 22:04
Arvin-Tao
阅读(4092)
评论(0)
推荐(0)
摘要:
1.安装net-tools [root@localhost ~]# yum install -y net-tools 2.关闭firewalld [root@localhost ~]# systemctl stop firewalld && systemctl disable firewalldRe 阅读全文
posted @ 2019-11-29 21:53
Arvin-Tao
阅读(309)
评论(0)
推荐(0)
摘要:
参考官方地址:http://nginx.org/en/docs/http/ngx_http_core_module.html#variables 用$limit_rate内置的变量可以限制nginx的响应速度。 比如限制nginx每秒响应1kb的内容给客户端。那么可以进行如下设置即可: 效果如下,可 阅读全文
posted @ 2019-11-29 21:44
Arvin-Tao
阅读(279)
评论(0)
推荐(0)
摘要:
1.root 下面举例说明: location /i/ { root /data/w3; } 请求 http://foofish.net/i/top.gif 这个地址时,那么在服务器里面对应的真正的资源是 /data/w3/i/top.gif文件 注意:真实的路径是root指定的值加上locatio 阅读全文
posted @ 2019-11-29 21:27
Arvin-Tao
阅读(336)
评论(0)
推荐(0)