Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 and the wordpress at 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. Later, when I have to add another app on the same domain, e.g. on the same node, I can create a separate run_list for this. But how do I update/ammend the VirtualHost of the Apache server since its only one per node?

share|improve this question
up vote 3 down vote accepted

The apache2 cookbook published by Opscode can do this.

See the web_app and apache_site definitions, documented usage in the file (displayed by default on the link above).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.