# Apache2+mongrel\_cluster

**URL:** <https://www.ruby-forum.com/t/apache2-mongrel-cluster/114403>\
**Category:** Rails\
**Created:** [September 12, 2007, 10:33am UTC](https://www.ruby-forum.com/t/apache2-mongrel-cluster/114403 "2007-09-12T10:33:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bogdan\_Gusev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@Bogdan\_Gusev](https://www.ruby-forum.com/u/Bogdan_Gusev)\
**Post date:** [September 12, 2007, 10:33am UTC](https://www.ruby-forum.com/t/apache2-mongrel-cluster/114403/1 "2007-09-12T10:33:40Z")

</div>

Please help me to configure apache with mongrel\_cluster.  
I have followed all the instructions but I can’t access any page  
except index.html.

My httpd.conf:

NameVirtualHost \*  
\<VirtualHost \*\>  
#ServerName 127.0.1.1  
DocumentRoot /home/test1/cookbook2/public

\<Directory “/home/test1/cookbook2/public”\>  
Options FollowSymLinks  
AllowOverride None  
Order allow,deny  
Allow from all

ProxyPass / balancer://mongrel\_cluster/  
ProxyPassReverse / balancer://mongrel\_cluster/

ProxyPass /images !  
ProxyPass /stylesheets !  
ProxyPass /javascripts !  
ProxyPass /favicon.ico !

RewriteEngine On

# Important rule to prevent exposure of subversion files if you are

deploying with Capistrano !  
RewriteRule ^(.\*/)?.svn/ - [F,L]

# Rewrite index to check for static

RewriteRule ^/$ /index.html [QSA]

# Rewrite to check for Rails cached page

RewriteRule ^([^.]+)$ $1.html [QSA]

# Redirect all non-static requests to cluster

RewriteCond %{DOCUMENT\_ROOT}/%{REQUEST\_FILENAME} !-f  
RewriteRule ^/(.\*)$ balancer://mongrel\_cluster%{REQUEST\_URI} [P,QSA,L]

\<Proxy balancer://mongrel\_cluster\>

# BalancerMember [http://127.0.0.1:8000](http://127.0.0.1:8000)

BalancerMember [http://127.0.0.1:8001](http://127.0.0.1:8001)

---

<div class="post-metadata">

**Author:** ![Bogdan\_Gusev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a698b9/32.png) [@Bogdan\_Gusev](https://www.ruby-forum.com/u/Bogdan_Gusev)\
**Post date:** [September 12, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/apache2-mongrel-cluster/114403/2 "2007-09-12T13:28:50Z")

</div>

Bogdan Gusev wrote:

> Please help me to configure apache with mongrel\_cluster.  
> I have followed all the instructions but I can’t access any page  
> except index.html.
> 
> [snip]

This is a question best asked on the Rails deployment list. Could you  
also post your mongrel\_cluster.yml configuration and double-check that  
you can access your Mongrels on the 8000 and 8001 ports (why is the 8000  
one commented out)?

–  
Roderick van Domburg  
[http://www.nedforce.com](http://www.nedforce.com)
