Rick, that did the trick. Thank you so much!<br><br>RSL<br><br><div><span class="gmail_quote">On 10/31/06, <b class="gmail_sendername">Rick Olson</b> <<a href="mailto:technoweenie@gmail.com">technoweenie@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 10/31/06, Russell Norris <<a href="mailto:rsl@swimcommunity.org">rsl@swimcommunity.org
</a>> wrote:<br>> Howdy. I'm working on a RoR CMS and need cached pages to all be in<br>> public/cache rather than public [in order to set svn:ignore on all the files<br>> properly]. I can get page_cache_directory set correctly and the pages are
<br>> cached in the right place but Mongrel isn't serving them because it's only<br>> looking for them in public. During development I know I can set -r<br>> public/cache but doing that means that the images and stylesheets don't get
<br>> picked up. I'm sure there's a way to tell Mongrel to look in both places or<br>> at least to serve assets from public and cached pages from public/cache.<br>> Isn't there?<br>><br>> Thanks in advance.
<br>><br>> RSL<br><br>I would think that you could just set up a custom DirHandler, but the<br>RailsHandler is taking up the root uri. I'm not sure this would work,<br>but use a config script like this:<br><br>uri "/", Mongrel::
DirHandler.new("path/to/public/cache",<br>listing_allowed=true, index_html="index.html"), :in_front => true<br><br>(the 2nd and 3rd params of DirHandler.new are optional).<br><br>I'm not sure if the DirHandler will return 404's or just pass on to
<br>the next handler in line, which would be the Rails Handler. If this<br>doesn't work, you'll have to hack the RailsHandler probably.<br><br>--<br>Rick Olson<br><a href="http://weblog.techno-weenie.net">http://weblog.techno-weenie.net
</a><br><a href="http://mephistoblog.com">http://mephistoblog.com</a><br>_______________________________________________<br>Mongrel-users mailing list<br><a href="mailto:Mongrel-users@rubyforge.org">Mongrel-users@rubyforge.org
</a><br><a href="http://rubyforge.org/mailman/listinfo/mongrel-users">http://rubyforge.org/mailman/listinfo/mongrel-users</a><br></blockquote></div><br>