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> &lt;<a href="mailto:technoweenie@gmail.com">technoweenie@gmail.com</a>&gt; 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 &lt;<a href="mailto:rsl@swimcommunity.org">rsl@swimcommunity.org
</a>&gt; wrote:<br>&gt; Howdy. I'm working on a RoR CMS and need cached pages to all be in<br>&gt; public/cache rather than public [in order to set svn:ignore on all the files<br>&gt; properly]. I can get page_cache_directory set correctly and the pages are
<br>&gt; cached in the right place but Mongrel isn't serving them because it's only<br>&gt; looking for them in public. During development I know I can set -r<br>&gt; public/cache but doing that means that the images and stylesheets don't get
<br>&gt; picked up. I'm sure there's a way to tell Mongrel to look in both places or<br>&gt; at least to serve assets from public and cached pages from public/cache.<br>&gt; Isn't there?<br>&gt;<br>&gt; Thanks in advance.
<br>&gt;<br>&gt; 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.&nbsp;&nbsp;I'm not sure this would work,<br>but use a config script like this:<br><br>uri &quot;/&quot;, Mongrel::
DirHandler.new(&quot;path/to/public/cache&quot;,<br>listing_allowed=true, index_html=&quot;index.html&quot;), :in_front =&gt; 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.&nbsp;&nbsp;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>