server{
listen 80;
server_name localhost;
location /pc/dataviz-report/dataviz-web {
proxy_pass http://10.1.1.1:80/dataviz-web/;
}
location /pc/dataviz-report/dataviz-service {
proxy_pass http://10.1.1.1:80/dataviz-service/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_set_header X-Forward-For $remote_addr;
proxy_redirect http://10.1.1.1:80/dataviz-service/ http://10.1.1.1:80/pc/dataviz-report/dataviz-service/;
proxy_cookie_path /dataviz-service /pc/dataviz-report/dataviz-service/;
}
}