只允许指定网络访问web
方法1:防火墙限制指定网络访问web 方法2:修改配置nginx.conf,在对应location下面添加 server { listen 443 ssl; ......

            # 对以下内网网段开放,其他拒绝访问
            allow 192.168.0.0/16;
            deny all;
            }

server {
listen 80; ......

            # 对以下内网网段开放,其他拒绝访问
            allow 192.168.0.0/16;
            deny all;
            }

2、重载配置 /home/coremail/sbin/nginx -s reload

results matching ""

    No results matching ""

    results matching ""

      No results matching ""

      results matching ""

        No results matching ""