Ed C.
2006-May-24 19:00 UTC
[Mongrel] Rails App in Subfolder = Routing Error Recognition Failed
Zed / List, On my workstation I''m running lighttpd 1.4.11 and mongrel 0.3.12.4. Here are my proxy settings: proxy.debug = 0 proxy.balance = "fair" proxy.server = ( "/RailsAppSample" => (( "host" => "127.0.0.1", "port" => 1337 ))) I can access http://localhost/ (default lighty welcome page) and http://localhost:1337/ (default rails welcome page) just fine! However, when I try to access http://localhost/RailsAppSample/ I get: Routing Error Recognition failed for "/RailsAppSample/" (I''ve seen examples of people running multiple rails apps under lighttpd + fcgi using a "strip-request-uri" option, but I don''t think that exists for mod_proxy.) Does anyone have any suggestions? Thanks, Ed C. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060524/41a49f5b/attachment.htm
Rick Olson
2006-May-24 20:08 UTC
[Mongrel] Rails App in Subfolder = Routing Error Recognition Failed
> Routing Error > Recognition failed for "/RailsAppSample/" > > (I''ve seen examples of people running multiple rails apps under lighttpd + > fcgi using a "strip-request-uri" option, but I don''t think that exists for > mod_proxy.) > > Does anyone have any suggestions?try this (in config/environment.rb) ActionController::AbstractRequest.relative_url_root = "/RailsAppSample" -- Rick Olson http://techno-weenie.net