proxy_pass_header dept-id;
underscores_in_headers on;
proxy_pass_request_body on;
if ($http_dept_id = 19)
{
#rewrite * http://192.168.19.145/;
rewrite ^/(.*)$ http://192.168.19.145/$1 redirect;
#rewrite ^/(.*) https://vip.h.com redirect;
#rewrite ^/(.*) http://192.168.19.145/#/login/ permanent;
#rewrite http://baidu.com;
#rewrite ^/(.*) https://www.baidu.com redirect;
#rewrite ^/(.*) http://www.baidu.com permanent;
#return 301 /login;
}