...
1、正常配置location的转发路径的时候,location /oa/test/ ,需要不能少一个斜杆:
2、不建议这样在映射后的路径中去掉vision ,因为这样重定向还会有问题,正常proxy_pass 配置到smartbi级别就行,具体如; 2、不建议proxy_pass配置到/vision级别 ,这样重定向会有问题,proxy_pass的地址只配置到/smartbi级别就行,具体如;
proxy_pass http://192.168.1.10:8080/smartbi/ ;
...
代码块 | ||
---|---|---|
| ||
location /oa/test/ {
proxy_pass http://192.168.1.10:8080/smartbi/ ;
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
proxy_redirect http://$host/smartbi /oa/test;
proxy_cookie_path /smartbi /oa/test;
}
|
...