nginx白名单


location ^~ /login/Jeecms.do {
root   html;
            index  index.html index.htm;
            proxy_set_header  X-Real-IP  $remote_addr;
            proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_redirect off;

            proxy_connect_timeout      60;
            proxy_send_timeout         60;
            proxy_read_timeout         60;

            proxy_pass http://jboss;

allow 127.0.0.1;
allow 192.168.69.0/255;
allow 182.48.117.2; 
deny all;
        }

你可能感兴趣的:(nginx,白名单)