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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Iván Vega R. (Guest)
on 2006-02-23 18:54
(Received via mailing list)

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" =>
                    ( "" =>
                        "host" => "",
                        "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?

Ivan V.

PS: This is fun!
Iván Vega R. (Guest)
on 2006-02-23 19: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 R.
escribió:> Hi,
This topic is locked and can not be replied to.