页面树结构

版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

代码块
titlenginx前后端请求分离示例
upstream smartbi-static {
    server 10.10.204.101:18080;
}

upstream smartbi-dynamic {
    server 10.10.204.100:18080;
}

server {
     listen       8088;
     server_name  10.10.204.150;

    location = /smartbi/vision/gbk.jsp {
        proxy_pass http://smartbi-static;
    }

    location ~ /smartbi/app/.* {
        proxy_pass http://smartbi-static;
    }
    
    location ~ /smartbi/vision/ssreport/htmls/.* {
            proxy_pass http://smartbi-dynamic;
    }

    location ~ /smartbi/vision/officehtmls/.* {
            proxy_pass http://smartbi-dynamic;
    }

    location ~ /smartbi/vision/.*(\.bmp|\.css|\.cur|\.db|\.eot|\.gif|\.GIF|\.htm|\.html|\.ico|\.jpg|\.JPG|\.js|\.json|\.map|\.otf|\.patch|\.png|\.PNG|\.svg|\.swf|\.template|\.ts|\.ttf|\.ttfx|\.txt|\.woff|\.woff2|\.xls|\.xml|\.yml)$ {
        proxy_pass http://smartbi-static;
    }

    location ~ /smartbi/smartbix/min/.* {
        proxy_pass http://smartbi-static;
    }

    location ~ /smartbi/smartbix/static/.* {
        proxy_pass http://smartbi-static;
    }

    location ~ /smartbi/.* {
        proxy_pass http://smartbi-dynamic;
    }
}

...