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;
            }
        }
  • 相关阅读:
    newgrp
    netstat
    netlink, PF_NETLINK
    netdevice
    mv
    mplayer
    mpg123
    MOVE
    motd
    more
  • 原文地址:https://www.cnblogs.com/SuperBrother/p/15638533.html
Copyright © 2011-2022 走看看