# Rails+apache2+mongrel\_cluster

**URL:** <https://www.ruby-forum.com/t/rails-apache2-mongrel-cluster/75746>\
**Category:** Rails\
**Created:** [November 13, 2006, 3:31am UTC](https://www.ruby-forum.com/t/rails-apache2-mongrel-cluster/75746 "2006-11-13T03:31:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [November 13, 2006, 3:31am UTC](https://www.ruby-forum.com/t/rails-apache2-mongrel-cluster/75746/1 "2006-11-13T03:31:48Z")

</div>

hey all,  
I managed to configure a mongrel+apache2 but now I would like to do a  
mongrel\_cluster. For now I have a sites-available/myapp but when it  
comes to mongrel\_cluster I need to set up myapp.common,  
myapp.proxy\_cluster.conf and  
myapp.proxy\_frontend.conf and I couldn’t find a tutorial that explain  
where should those file go. is it in conf.d or sites-available/ or  
else?

thanx in advance.

Pat

---

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [November 13, 2006, 4:53am UTC](https://www.ruby-forum.com/t/rails-apache2-mongrel-cluster/75746/2 "2006-11-13T04:53:54Z")

</div>

Patrick, have you seen:

[http://mongrel.rubyforge.org/docs/apache.html](http://mongrel.rubyforge.org/docs/apache.html)

if you put in your apache2 conf somewhere to load a .conf file, and  
inside that file, if it says to include myapp.common, then it will  
load up all your directives.

I always drop a line in my httpd.conf that looks like this:

Include /etc/\*.conf

That way, any file that ends in .conf inside the /etc/ directory gets  
loaded by apache.

A capistrano script like this one:

[http://svn.highgroove.com:8080/deployment/trunk/apache2\_2\_mongrel\_deploy.rb](http://svn.highgroove.com:8080/deployment/trunk/apache2_2_mongrel_deploy.rb)

will help you setup all those files. Simply run cap setup and point  
it at a box and it will do all the work for you.

cheers

On 11/12/06, Patrick A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Pat
> 
> * * *
> 
> Mongrel-users mailing list  
> removed\_email\_address@domain.invalid  
> [http://rubyforge.org/mailman/listinfo/mongrel-users](http://rubyforge.org/mailman/listinfo/mongrel-users)

–  
Charles Brian Q.  
self-promotion: [www.seebq.com](http://www.seebq.com)  
highgroove studios: [www.highgroove.com](http://www.highgroove.com)  
slingshot hosting: [www.slingshothosting.com](http://www.slingshothosting.com)
