Nginx部署vue多项目

server {
    listen 80;
    server_name test.hehe.com;

    location /riskcontrol {
      root /data;
      try_files $uri $uri/ /riskcontrol/index.html;
      access_log /app/logs/riskcontrol.log;
    }

    location /buyloan {
      root /data;
      try_files $uri $uri/ /buyloan/index.html;
      access_log /app/logs/buyloan.log;
    }
}

参考链接: http://blog.csdn.net/echo008/article/details/77098142

原文地址:https://www.cnblogs.com/Csir/p/8473387.html