I have two different Rails directories and I’m trying to get scgi to
serve both of them. There
don’t appear to be any docs on how to do this. I thought perhaps it was
cluster, but that appears
to be just for concurrent connections in the same Rails directory. As it
is now, I can get my
first Rails directory to work, but the second just displays ‘bad
gateway’ errors. I’ve started
scgi in both Rails directories. I guess the missing link is in Lighty’s
config, but I don’t know
how to make requests for specific hosts go to specific scgi servers. My
lighty config:
I set scgi in the second Rails directory to use port 10100. But I still
get ‘bad gateway’ errors.
I’ve tried everything I can think of and still can’t get it to work. Has
anybody been able to get
scgi to serve different Rails directories?
thanks for any help,
csn
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
don’t know how to do it with lighty, but I’m running multiple scgi apps
as VirtualHosts on Apache. Therefore I’m starting scgi_ctrl start with
different ports on the different directorys and define the SCGI-Mounts
in VirtualHost-directives that serve these directories. Maybe this is an
option for you.
You need to make vhosts in lighttpd.conf for each rails app. So make
one of these sections for each rails app with a different domain
name. Here is a sample. vhost:
I was curious to see if I could put scgi’s config params in just one
vhost, and hopefully the
global scgi params would be the default for all other vhosts that didn’t
have scgi config stuff.
Doesn’t appear to work - the vhost with scgi params worked, but the
others displayed 404 errors.