zoukankan      html  css  js  c++  java
  • 一段ngnix 代理

        server {
           listen       8084;
           server_name  localhost;


            location / {
                proxy_pass http://localhost:7777;
            }

            location ^~ /_report {
              try_files $uri /index.html index.html;
              alias E:/workspace/product_factory_report/client/dist/;
            }

            location ~* \.(pdf|png)$  {        
                root E:\workspace\product_factory_report\client\dist;    #默认的图片路径,只要后缀是以上的都会到这个路径下搜索
            }

            location /productFactoryReportAssets {
              alias E:/workspace/product_factory_report/client/dist/productFactoryReportAssets/;
            }

            location /api {
                proxy_pass http://localhost:7777;
            }

            location ^~ /api/_report {
                proxy_pass http://localhost:7000;
            }
        }
  • 相关阅读:
    关于LockSupport
    Sqrtx
    Text Justification
    Unique Paths II
    N-Queens
    Anagrams
    CSipSimple通话记录分组
    CSipSimple配置系统
    Permutations II 再分析
    CSipSimple的插件结构
  • 原文地址:https://www.cnblogs.com/SuperBrother/p/15638533.html
Copyright © 2011-2022 走看看