nginx中ngx_http_access_module做访问控制
2017-07-07 21:15
267 查看
出现问题:配置文件如下:
server {
listen 80;
server_name www.a.com;
deny 192.168.65.105;
allow 192.168.0.0/24;
deny all;
#access_log logs/host.access.log main;
location / {
root html/a.com;
index index.html index.htm;
}
物理主机ip为192.168.65.101,node1为192.168.65.105,node2为192.168.65.110,都出现403状态?
子网掩码写错了!!!!!!!!!!!!!!!!!!!!!!!!!!!
server {
listen 80;
server_name www.a.com;
deny 192.168.65.105;
allow 192.168.0.0/24;
deny all;
#access_log logs/host.access.log main;
location / {
root html/a.com;
index index.html index.htm;
}
物理主机ip为192.168.65.101,node1为192.168.65.105,node2为192.168.65.110,都出现403状态?
子网掩码写错了!!!!!!!!!!!!!!!!!!!!!!!!!!!
相关文章推荐
- nginx访问控制allow、deny(ngx_http_access_module)
- Nginx访问控制_IP访问控制(http_access_module)原理、局限性、解决方法讲解
- 详细解释:nginx中ngx_http_access_module模块(HTTP Access 模块)配置及各个参数含义
- Nginx+lua+http_checkmodule+tcp_checkmodule+动态监测与访问控制 安装
- Nginx访问控制_登陆权限的控制(http_auth_basic_module)
- 详细解释:nginx中ngx_http_access_module模块(HTTP Access 模块)配置及各个参数含义
- Nginx防攻击工具教程一 ngx_http_limit_conn_module
- Nginx 负载均衡模块 ngx_http_upstream_module 详述
- nginx 动态缩略图模块安装(ngx_http_image_filter_module)
- Nginx 统计单虚拟机流量工具 - ngx_http_accounting_module
- Nginx HttpMemcModule和直接访问memcached效率对比测试
- 配置nginx身份验证(ngx_http_auth_basic_module)
- nginx 整合 ngx_http_accesskey_module 模块的应用
- Nginx防攻击工具教程一 ngx_http_limit_conn_module
- nginx限制连接数ngx_http_limit_conn_module模块
- nginx静态压缩(ngx_http_gzip_static_module)
- 解剖Nginx·模块开发篇(3)ngx_http_hello_world_module 模块的基本函数实现
- HttpModule实现系统IP访问控制
- 解剖Nginx·模块开发篇(2)ngx_http_hello_world_module 模块基本结构定义
- 详细解释:nginx中ngx_http_auth_basic_module模块(HTTP Auth Basic 模块)配置及各个参数含义 .