In order to make my life easier with new vhosts popping up I set up my httpd.conf to use this:
<IfModule mod_vhost_alias.c>
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
RewriteRule ^(.*)$ - [env=askapache:%2]
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]
ServerAlias *
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog /var/log/httpd/access_log vcommon
VirtualDocumentRoot /web-data/vhosts/%0/httpdocs
VirtualScriptAlias /web-data/vhosts/%0/httpdocs
</VirtualHost>
</IfModule>
The problem is one of the hosts needs to make use of a ProxyPass statement. I was just going to put that in a separate conf file in a conf folder in that sites root (not Doc Root outside the httpdocs folder). However I can't figure out how to do that and include it with the dynamic virtual hosting. What can I do to set up a ProxyPass just for this one host without messing up the dynamic virtual hosting setup I have?
Edit:
I've tried the following in my .htaccess file to no avail. I get a 404
RewriteEngine on
RewriteRule ^blog/$ http://blog.mydomain.com [P,L]