[Mongrel] what should be correct .conf file for being served by apache for static content

hemant gethemant at gmail.com
Sat Sep 9 09:52:36 EDT 2006


<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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060909/3e769c74/attachment.html 


More information about the Mongrel-users mailing list