文章分类 - Nginx那些事儿
摘要:1、配置大于1.9 2、配置文件 stream { upstream backend { server backend1.example.com:12345; server backend2.example.com:12346; } server { listen 12345; # 监听的端口 pr
        阅读全文
                
摘要:博客园联系管理 nginx如何设置禁止访问文件或文件夹 目标: 1. 根目录 webroot; 2. 设置目标文件 /webroot/proj/deny.txt 不能访问; 做法: 1. 设置 nginx.conf ,添加一个“location”段落; 2. 尝试录入 location ^~ /project/deny.txt { alias /webroot/pr...
        阅读全文
                
                    
                
浙公网安备 33010602011771号