限制访问webadmin、archadm、apiws、icmagent等
1、修改配置nginx.conf,在新建location并添加,注意如果原有配置里面有白名单,则需要先删除白名单 location ~* ^/webadmin($|/) { proxy_set_header X-FORWARDED-FOR $remote_addr; proxy_set_header X-FORWARDED-PROTO $scheme; proxy_set_header Host $http_host; proxy_pass http://http_tomcat_9900; proxy_http_version 1.1; proxy_set_header Connection ""; proxy_read_timeout 600; proxy_intercept_errors on; add_header X-XSS-Protection '0'; add_header Strict-Transport-Security max-age=31536000;

# 对以下内网网段开放,其他拒绝访问
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 ""