Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and I didn’t find
anything. Would anyone be so kind to show me where to go, or tell me how
to configure fcgi?
Thanks a lot.
Ezra
Here is my current config file:
server.document-root = “/opt/webspace/mysite/public”
server.port = 80
server.username = “apache”
server.groupname = “apache”
server.modules = (“mod_rewrite”,“mod_redirect”,“mod_fastcgi”, “mod_cgi”)
fastcgi.server = (".fcgi" =>
( “railsapp” =>
( “min-procs” => 1,
“max-procs” => 5,
“socket” => “/tmp/ruby-railsapp.fastcgi”,
“bin-path” => “/opt/webspace/mysite/public/dispatch.fcgi”
)
)
)
server.indexfiles = ( “index.html”, “index.cgi” )
server.error-handler-404 = “/dispatch.fcgi”
mimetype.assign = (
“.html” => “text/html”,
“.txt” => “text/plain”,
“.jpg” => “image/jpeg”,
“.png” => “image/png”
)
index-file.names = ( “index.html”, “index.cgi” )
$HTTP[“host”] == “bugs.mysite” {
server.document-root = “/opt/webspace/bugzilla-2.20/”
accesslog.filename = “/Users/USER/Sites/rails/log/access.log”
}