[Mongrel] (OT?) Rails App in Subfolder = Routing Error Recognition Failed

Ed C. defeated2k4 at gmail.com
Thu May 25 17:11:03 EDT 2006


All,

I realize this was probably off-topic (not really mongrel-centric) -- my
apologies.

I "solved" the problem by appending to my Environment.rb:

  ActionController::AbstractRequest.relative_url_root = "/RailsAppSample"

How come that doesn't serve up the default "public/index.html" ? It caused a
Routing Error for "", so I added a temporary default to Routes.rb:

  map.connect '', :controller => "rails/info", :action => "properties"

Regards,
Ed C.


On 5/24/06, Ed C. <defeated2k4 at gmail.com> wrote:
>
>  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/20060525/11893223/attachment.htm 


More information about the Mongrel-users mailing list