Create/Update apache virtualhost on the same node for diff subdomains using Chef server?

view full story

http://serverfault.com – I've two applications to deploy/run using chef on a single node under the same domain/subdomain. One is a Rails app and another is a Wordpress app. The Rails app will reside as the main app at say example.com and the wordpress at blog.example.com. And lets assume that I'll be using Apache2 as the webserver to handle the VirtualHost. The examples and posts so far I've searched and found deals with one app per node. But for me the challenge is how to deploy multiple apps on the single node under the same domain using VirtualHost? I can created 2 separate run_list adding different roles to it. (HowTos)