通过nginx的proxy_pass来处理跨越问题
server {
listen 8168;
server_name localhost;
location / {
root /opt/apache-tomcat-8.5.8/hidisp.iledsysCloudView/webapps/ROOT;
index index.html;
try_files $uri $uri/ @router;
index index.html;
# proxy_pass http://192.168.0.35:8167/;
}
location @router {
rewrite ^.*$ /index.html last;
}
##### api 服务端
location /iledsysCloudServer/ {
proxy_pass http://192.168.0.35:8166/iledsysCloudServer/;
}
}