Fang sun wrote: > Right now we configure handler on 3 type uri: Directory, Extension > and Request. As the demonstration config shows we use file handler > to take care "/public" and scgi to pass general request to scgi > backend. OTOH, while develop webapp with buildin webrick server, the > DocumentRoot is set to $RAILS_ROOT/public, this kind of > inconsistency means extra work to be done when deploy rails > application on the production server(mainly to take care of static > file url).
Could you please copy&paste the configuration please? I'm not 100% about what you mean. > I tried to configure two handler on the same directory: first scgi, > then file handler, it seems that the latter handler get highter > priority. Yeah, it does. The latest entry is the highest priority one, and you can't assign two handlers to the same entry (dir, ext or req) actually. > This is close to what I need, however I cannot setup a 404 error > handler to trap scgi get involved. I search the mail archive a bit, > without much success. Any suggestion on this matter? What's the > equivalent of server.error-handler-404 in lighttpd? That is one of the worst ideas I have ever seen. IMO, the error redirection is mechanism shouldn't be used in such a messy way. Let's check your configuration and I bet we'll come up with some good solution. :-) -- Greetings, alo. http://www.alobbs.com _______________________________________________ Cherokee mailing list [email protected] http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
