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