title: how to integrate yii2 with ispconfig3
body: <p>IspConfig3 uses /var/www/website/web as the default webroot.</p>
  
  <p>When using yii2 Advanced App, should I place all the code above the webroot and simply create a simlink to the frontend/web as the web webroot?</p>
  
  <p>How have others done this? </p>
  
  <p>What if I'd like to install the yii2 application into a sub-directory of an application that already lives in the webroot?</p>
  
  <p>ie: </p>
  
  <pre><code>location / {
    mainapp
    ---
  }
  location /yii2app {
    #can't get these setting right for frontend OR backend.
  }
  </code></pre>
  
  <p>My server is centos 6.4 with nginx</p>