This might be of interest to you, a sample of my own http.conf. It's a slightly modified version of what you've got in yours that lets you have multiple virtual hosts on the same server - handy if you want to use phpmyadmin and ezpublish together, for example:
# View your site locally by entering localhost into the location
# bar of your browser
<Virtualhost *:80>
<Directory /var/www/html/ezpublish-my-sites/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
# View phpmyadmin locally by entering phpmyadmin into
# the location bar of your browser
<Virtualhost *:80>
<Directory /var/www/html/phpMyAdmin-2.5.4/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None </Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
# View your site from the web by entering it's internet url
# into the location bar of your browser
<Virtualhost *:80>
<Directory /var/www/html/ezpublish-my-sites/>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>
RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php
You probably need to change your match order to uri instead of host, or put "uri, " before host. Either that or I've read your question wrong and have just wasted both of our time ;)
Ole: I have DirectoryIndex index.php together with a few other directives (rewrite rules, etc) in my .htaccess file. Should this make a difference.
James: What you have there is very similar to what I have except that I have to specify an IP address (the same box is used for hosting multiple sites) and that some of my directives are located in my .htaccess file for the site.
I have a small prob with vhosts also...
I need to get one folder inside eZ's folder to act as its own url...
Example:
My ez is running in url: www.mysite.com (www.mysite.com/page1 etc.)
So everything after .com/ goes through index.php.
And I need one folder to go like www.mysite.com/folder It cannot do it now, 'cause it goes through index.php.
How can I make an overwrite to htacces or httpd.conf so this specific folder wouldn't go through index.php and would act normally?