同个服务,分别读取不同借口

location /xibao/service_api/ {
if ($request_uri ~ ^/xibao/(.*)) {
set $xibao_data_url $1;
}
proxy_pass http://IP:8079/$xibao_data_url;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /xibao/ {
proxy_pass http://IP:8080/$request_uri ;
}

05-08 14:56