欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V10方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 5639|回复: 1
收起左侧

Nginx上禁止Dokuwiki敏感目录的访问

[复制链接]
script 发表于 2012-11-19 11:59 | 显示全部楼层 |阅读模式
location ^~ /conf/
                        {
                                deny all;
                                auth_basic "Authorized users only";
                                auth_basic_user_file 验证文件路径;
                        }
 
                 location ^~ /data/
                        {
                                deny all;
                                auth_basic "Authorized users only";
                                auth_basic_user_file 验证文件路径;
                        }
 
                 location ^~ /inc/
                        {
                                deny all;
                                auth_basic "Authorized users only";
                                auth_basic_user_file 验证文件路径;
                        }
 
                 location ^~ /bin/
                        {
                                deny all;
                                auth_basic "Authorized users only";
                                auth_basic_user_file 验证文件路径;
                        }
 楼主| script 发表于 2012-11-19 11:59 | 显示全部楼层

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-3-29 13:33 , Processed in 0.056832 second(s), 7 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表