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