I think you need to set up different fcgi.sockets for both of the instances.
Thats what I do anyway. Just give the test one a name like
"test-fcgi.socket"
I am no expert in this lighttpd stuff even though I do use it on stakeitout.com.
btw. Your site looks cool. I love it when people invent a new solution
for an old problem.
Pelle
On 6/22/05, John Kopanas
<john.kopanas-O1KSuMybMhqBUy7/sJONFg@public.gmane.org>
wrote:> Sorry about this question.
>
> I have my vhosts configure in Lighttpd like this:
>
>
> $HTTP["host"] =~ "(www\.|^)thedatingguy.com" {
> server.document-root = "/home/jkopanas/domains/thedatingguy.com/
> website/public/"
> server.error-handler-404 = "/dispatch.fcgi"
> server.indexfiles = ( "dispatch.fcgi")
> server.errorlog = "/home/jkopanas/domains/thedatingguy.com/website/
> log/error.log"
> fastcgi.server = ( ".fcgi" =>
> ( "localhost" =>
> ( "socket" =>
"/home/jkopanas/lighttpd/lighttpd-fcgi.socket",
> "min-procs" => 1,
> "max-procs" => 5,
> "bin-path" =>
"home/jkopanas/domains/thedatingguy.com/
> website/public/dispatch.fcgi",
> "bin-environment" => ( "RAILS_ENV" =>
"production" )
> )))
> }
>
> $HTTP["host"] =~ "preview.thedatingguy.com" {
> server.document-root = "/home/jkopanas/domains/thedatingguy.com/
> preview/public/"
> server.error-handler-404 = "/dispatch.fcgi"
> server.indexfiles = ( "dispatch.fcgi")
> server.errorlog = "/home/jkopanas/domains/thedatingguy.com/preview/
> log/error.log"
> fastcgi.server = ( ".fcgi" =>
> ( "localhost" =>
> ( "socket" =>
"/home/jkopanas/lighttpd/lighttpd-fcgi.socket",
> "min-procs" => 1,
> "max-procs" => 5,
> "bin-path" =>
"home/jkopanas/domains/thedatingguy.com/
> preview/public/dispatch.fcgi",
> "bin-environment" => ( "RAILS_ENV" =>
"test" )
> )))
> }
>
> If I put the one for $HTTP["host"] =~
"(www\.|^)thedatingguy.com"
> first the log files are written to production.log for both vhosts...
> if I put the preview.thedatingguy.com specification first I get logs
> for all of them written in test.log. Do you have any clue why this
> is happening?
>
> Thanks for your input.
>
> Your Friend,
>
> John
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
https://stakeitout.com + Stake out your own micro ventures
http://neubia.com + Geek blog
http://stakeventures.com + Bootstrapping blog
http://SoapBX.com + Get on the box and shout