worker321 发表于 2016-12-25 07:21:53

nginx白名单

location ^~ /login/Jeecms.do {
root   html;
            indexindex.html index.htm;
            proxy_set_headerX-Real-IP$remote_addr;
            proxy_set_headerX-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;
      }
页: [1]
查看完整版本: nginx白名单