So, I was able to get this to work by routing all requests, whether
static or non-static to the cluster.  Whether it's the right thing to
do is another question entirely, so I don't consider this solved just
yet.

After going the rewrite log files, I saw that the RewriteCond in the
following snippet ought to be commented out the page to pop up
correctly, like so:

# Redirect all non-static requests to cluster
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster_for_webapp%{REQUEST_URI}
[P,QSA,L]

Because when it came to images, javascript files, and stylesheets, it
would not match the !-f (file does not exist) part of the condition
and it would pass through.

I guess the next step is to find out why apache is not able to find
these files.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to