Nginx 配置

    server {
        listen       8000;
        server_name  localhost;

        location / {
            root D:/Project/guns/dist;
            index  index.html index.htm;
        }

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

        location /warehouse/ {
             proxy_pass  http://localhost:8168/warehouse/;
        }
    }

三个location分别配置的是前端、后端、WEB三维

posted @ 2022-04-26 12:10  0611163  阅读(40)  评论(0编辑  收藏  举报