Forum: Ruby on Rails Running apps in subdirectories using lighty/scgi

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C5380b957ff8ce5cb14cf2282ffeb720?d=identicon&s=25 Iván Vega Rivera (Guest)
on 2006-02-23 17:54
(Received via mailing list)
Hi,

So thanks to Zed I was able to get lighty/scgi and a Rails app running.

I know this might not be the best place to post this, but I guessed
there may be several others with similar experiences here.

So, the following step is to have several apps each in its on
subdirectory. I tried the following to no avail:

$HTTP["url"] =~ "^/tango/" {
  server.document-root = "/home/tango/public/"
  server.error-handler-404 = "/dispatch.scgi"
  scgi.server = (
                  "/dispatch.scgi" =>
                    ( "127.0.0.1" =>
                      (
                        "host" => "127.0.0.1",
                        "port" => 9999,
                        "check-local" => "disable"
                      )
                    )
                )
}

But all I get is a 404. Running scgi_monitor shows that in fact,
requests to anything in or below /tango/ is getting handled by SCGI. So
it would seem that SCGI isn't finding the Rails app?

Regards,
Ivan V.

PS: This is fun!
C5380b957ff8ce5cb14cf2282ffeb720?d=identicon&s=25 Iván Vega Rivera (Guest)
on 2006-02-23 18:18
(Received via mailing list)
It seems that Rails is getting a request for /tango/... which it doesn't
recognize... hmmm... How could I remove /tango/ from the URI Rails gets?

Iván Vega Rivera
escribió:> Hi,
This topic is locked and can not be replied to.