[Mongrel] #17446 [PATCH] Add option to mongrel_rails to force mongrel not to serve static files

Nathan Vack njvack at wisc.edu
Thu Jan 24 10:42:45 EST 2008


On Jan 24, 2008, at 6:13 AM, Saimon Moore wrote:

> Hi all,
>
> I've just added a patch that I'd appreciate some feedback on:
>
> http://rubyforge.org/tracker/index.php? 
> func=detail&aid=17446&group_id=1306&atid=5147

I'll admit by cold-addled brain isn't following logic perfectly this  
morning, but I feel like this really would be better handled by the  
upstream HTTP handler giving enough information to your app so it  
serves the right cached file (or runs the right controller, or  
whatever).

I think passing the Host: header along with the request_routing  
plugin (assuming you're on Rails) will make everything happy:

http://agilewebdevelopment.com/plugins/request_routing

Or am I missing something?

-Nate


More information about the Mongrel-users mailing list