<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Jul 5, 2006, at 7:59 PM, Bryan Liles wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">If this was in the docs, I've missed it.<SPAN class="Apple-converted-space">  </SPAN>How can I have multiple <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">mongrel clusters on a server?<SPAN class="Apple-converted-space">  </SPAN>All the documentation that I am seeing <SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">seems to assume that I am only running one cluster.</DIV> </BLOCKQUOTE><BR></DIV><DIV>Hi Bryan:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Take a look at the railsmachine gem. It will create Apache vhost configurations for you via Capistrano. I'm working on better doc, but this should get you going. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Note: These instructions assume CentOS/RedHat with Apache 2.2, mongrel_cluster, and MySQL installed. You may need to adjust for your server environment.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1. Create a directory to hold the Apache conf for each application. For example:</DIV><DIV>sudo mkdir /etc/httpd/conf/apps/</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>2.  Add includes for a default virtual host and additional vhosts to your Apache conf:</DIV><DIV>sudo vi /etc/httpd/conf/httpd.conf</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Append the following:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>NameVirtualHost *:80</DIV><DIV>Include conf/default.conf</DIV><DIV>Include conf/apps/*.conf</DIV><DIV><BR class="khtml-block-placeholder"></DIV>3. Create a mongrel_cluster configuration dir:<BR><DIV>mkdir /etc/mongrel_cluster</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>4. Install railsmachine and Capistrano gems on your development box:</DIV><DIV>sudo gem install railsmachine --include-dependencies</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>5. Check out deployment instructions and modify any paths for your system in config/deploy.rb:</DIV><DIV><A href="https://support.railsmachine.com/index.php?pg=kb.page&id=12">https://support.railsmachine.com/index.php?pg=kb.page&amp;id=12</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Hope this helps! Dig around in the gem source to see how to modify the process for your needs.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Good luck,</DIV><DIV>Bradley Taylor</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); ">------</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); ">Rails Optimized Hosting ~ VPS and Dedicated Servers</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); ">Simplified Deployment  ~ Services and Software</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); "><A href="http://railsmachine.com">http://railsmachine.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); "><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(248, 248, 248); "><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>