I'm not an apache guru. But I wish to configure my server for mass virtual hosting using CakePHP. The concept is the fact that we'll have the ability to easily setup multiple versions of the identical application according to directory location:

production.domain.com
testv1.domain.com
etc...

And So I know I've mod_vhost_alias working all right. I've got a fundamental directory setup where I've added an evaluation index.html file (/var/www/htdocs/cake/test/webroot). After I point my browser towards the location (test.domain.com), the index.html is displayed within the browser. My vhost is set up to drag %1 in the URL to be aware what directory to suggest to:

VirtualDocumentRoot /var/www/htdocs/cake/%1/webroot

However when I point my browser towards the cake application, I recieve a webpage not found error. I suspect it's something related to the mod_rewrite within the .htaccess file. Listed here are the entire configs for:

mod_vhost_alias (in .conf file)

<VirtualHost *:80>
ServerAlias *
UseCanonicalName Off
VirtualDocumentRoot /var/www/htdocs/cake/%1/webroot
<Directory /var/www/htdocs/cake/%1/webroot>
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>
</VirtualHost>

.htaccess (in webroot - default as it comes from CakePHP)

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

Any ideas ways to get results together?

Works out all it needed was:

DirectoryIndex index.html index.php