Adding a rails app to a subdomain

I'm trying to add a separate rails app to my existing rails app
running on apache.

I followed the steps at this site (

so my setup looks like this


NameVirtualHost *:80

<Proxy *>
  Order allow,deny
  Allow from all

#gawkk main site
Include /etc/apache2/conf.d/gawkk/gawkk.conf
Include /etc/apache2/conf.d/gawkk/gawkk.cluster.conf

Include /etc/apache2/conf.d/blog/blog.conf
Include /etc/apache2/conf.d/blog/blog.cluster.conf

each of the sites have their own common file(i'm not sure if that's
the way it was suppose to be or not)

in the common file they have

  ServerName blog.myapp.comm
  DocumentRoot /var/www/blog/current/public

  RewriteRule ^/(.*)$ balancer://blog_cluster%{REQUEST_URI} [P,QSA,L]

  ServerName www.myapp.comm
  DocumentRoot /var/www/myapp/current/public

  RewriteRule ^/(.*)$ balancer://myapp_cluster%{REQUEST_URI} [P,QSA,L]

depending on which site i put first in the http.conf that cluster
pulls all the requests.

I can't seem to find a way to separate the domain and subdomain apart
so that each cluster pulls the request.

Any help would be MUCH appreciated!