文章分类 -  Nginx那些事儿

摘要:1、配置大于1.9 2、配置文件 stream { upstream backend { server backend1.example.com:12345; server backend2.example.com:12346; } server { listen 12345; # 监听的端口 pr 阅读全文
posted @ 2024-05-16 09:35 都是城市惹的祸 阅读(9) 评论(0) 推荐(0)
摘要:博客园联系管理 nginx如何设置禁止访问文件或文件夹 目标: 1. 根目录 webroot; 2. 设置目标文件 /webroot/proj/deny.txt 不能访问; 做法: 1. 设置 nginx.conf ,添加一个“location”段落; 2. 尝试录入 location ^~ /project/deny.txt { alias /webroot/pr... 阅读全文
posted @ 2018-11-22 16:01 都是城市惹的祸 阅读(233) 评论(0) 推荐(0)