Apache2+mongrel_cluster

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

BalancerMember http://127.0.0.1:8001

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