# Scaling Rails with Apache 2.2, mod\_proxy\_balancer and Mongre

**URL:** <https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476>\
**Category:** Rails\
**Created:** [April 21, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476 "2006-04-21T23:57:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [April 21, 2006, 11:57pm UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476/1 "2006-04-21T23:57:51Z")

</div>

Cheers,

I’ve just published a blog post about scaling Rails with Apache 2.2,  
mod\_proxy\_balancer and Mongrel. This way you do not need another proxy  
server or load balancer for Mongrel. Just use Apache 2.2 and mod\_proxy  
balancer.

[http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod\_proxy\_balancer-and-mongrel](http://blog.innerewut.de/articles/2006/04/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel)

Jonathan

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [April 22, 2006, 12:19am UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476/2 "2006-04-22T00:19:35Z")

</div>

How does page caching (at the webserver) work in such a setup ?

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [April 22, 2006, 1:29am UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476/3 "2006-04-22T01:29:58Z")

</div>

Very sweet Jonathan, I’m working on some mongrel documentation on  
various  
deployment scenarios. I’ll probably just refer to your posting for the  
Apache best practice if you don’t mind. If you think this posting will  
move  
around then would you mind letting me steal it as “official  
documentation”?  
It will be your work and authored by you, just sitting on the  
[mongrel.rubyforge.org](http://mongrel.rubyforge.org) site.

Oh, and I saw your posting to the mongrel-users list, but I have a habit  
of  
aborting unregistered posting these days. You see, for some very weird  
reason mongrel-users is getting about 10 Japanese school girl porn  
messages  
a day so my rejection is on auto-pilot. Sorry.

Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [April 22, 2006, 1:48am UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476/4 "2006-04-22T01:48:10Z")

</div>

Zed S. wrote:

> Very sweet Jonathan, I’m working on some mongrel documentation on various  
> deployment scenarios. I’ll probably just refer to your posting for the  
> Apache best practice if you don’t mind. If you think this posting will move  
> around then would you mind letting me steal it as “official documentation”?  
> It will be your work and authored by you, just sitting on the  
> [mongrel.rubyforge.org](http://mongrel.rubyforge.org) site.

I do not think that the post will move but you can also put it on  
[mongrel.rubyforge.org](http://mongrel.rubyforge.org) if you like.

Jonathan

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [April 22, 2006, 1:54am UTC](https://www.ruby-forum.com/t/scaling-rails-with-apache-2-2-mod-proxy-balancer-and-mongre/58476/5 "2006-04-22T01:54:15Z")

</div>

Roberto S. wrote:

> How does page caching (at the webserver) work in such a setup ?

It depends.

You can tell Apache to serve all the static files, then page caching  
should be no problem.

You can also mount /public through NFS & co on all cluster nodes so that  
they share the file cache.

We only use fragment caching (with memcached) so I had no urge to look  
further into page caching.

Jonathan
