[Nitro] fcgi multiple vhosts

Michael Fellinger m.fellinger at gmail.com
Wed Nov 2 02:35:38 EST 2005


Hi List,

time for yet another request.
I want to setup multiple vhosts for lighttpd - now doing that is totally 
simple (that is what i thought) - and i set out to do that.
my problem is now obviously the url.rewrite (afaik) - and i try to get some 
idea what is happening there. I was using this bit from the examples for 
lighttpd.confs, but they are mostly for standalone-apps with only different 
ports, but this one is different...
everytime i try to access now http://example.com/foo i get a method_missing 
from nitro - it cannot find the method 'foo', wich is still in the request - 
i want to get rid from it, but seems i can't... i would be thankful for a 
solution or some idea, my regexpFu and knowledge about the 
fcgi-handler/adapter is not that strong... :)

thank you in advance,
manveru

#my lighttpd.conf:
$HTTP["url"] =~ "^/foo" {
        server.document-root = "/home/www-net/nitro/rep/public"
        server.errorlog = "/home/www-net/logs/foo_lighttpd.errors.log"
        server.indexfiles = ( "index.html" )
        url.access-deny = ( "~", ".inc", ".bak" )
        url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )
        server.error-handler-404 = "/fcgi.rb"
        fastcgi.server = ( ".rb" =>
                ( "foo" =>
                      (
                      "min-procs" => 1,
                      "max-procs" => 5,
                      "socket" => "/tmp/foo.fcgi.socket",
                      "bin-path" => "/home/www-net/nitro/rep/public/fcgi.rb",
                      "bin-environment" => ( "NITRO_ENV" => "development" )
                      )
                )
        )
        }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20051102/7032b510/attachment.bin 


More information about the Nitro-general mailing list