Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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. Later, when I have to add another app on the same domain, e.g. forum.example.com 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

1 Answer 1

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 README.md 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.