title: Apache 2 /httpd vhost dynamic documentroot
body: <p>I have an app in folder /var/www/test
  Also there is an "sub-app" in folder /var/www/test/subapp (There is another index.php inside
  If user will type test.com the index.php of test should trigger but when user type test.com/triggersubapp the index,php from /var/www/test/subapp shall run. </p>
  
  <p>I failed to create correct  statements and RewriteRules and I haven't got much time left. So have any one of You know how to do this easiest way or maybe have a correct definition? </p>
  
  <p>I would greatly appreciate it !!!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>The main index.php and .htaccess are in /var/www/test/public/. :(</p>