<snip>

# Redirect all non-static requests to cluster
# translated: "if this request does not point to a file we have lying
# around in our file system (the !-f part), then go ahead and let
#Mongrel do it's job"
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]

You can achieve the same with the Proxy* rules by explicitly excluding
several directories where static files reside from being proxied, but
the rewrite approach is much more elegant, imho.

The snippet has been taken from the quite complex apache config example
at http://mongrel.rubyforge.org/docs/apache.html

</snip>

Yes...i am using that. But as I have seen ProxyPass and ProxyPassReverse rules..being used(or at least, quoted as being used by so many bloggers), I wanted to point this out.
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to