[Mongrel] Static files in public

Philip Hallstrom mongrel at philip.pjkh.com
Thu Sep 21 14:15:51 EDT 2006

> My question is about the static files in the Rails public folder. These
> files should be served by Apache instead of Mongrel, so do I need to
> upload these files to Apache's htdoc's or will Apache cache them the
> first time they are requested from Mongrel... Im not sure how this works?

Apache won't cache them unless you tell it to.  I think most people point 
Apache to RAILS_ENV/public and configure things so that Apache only passes 
on requests to mongrel that it can't find in the filesystem...

http://mongrel.rubyforge.org/docs/apache.html  (configuring apache2 


More information about the Mongrel-users mailing list