I''m not sure if it matters but you have them pointed at the same socket
file?
I read somewhere that there was a bug in lighttpd on Mac OS X that
prevented multiple hosts from working correctly. I had similar
problems when I tried to set it up.
What version of lighttpd are you using?
If you get this resolved it would be great, I''d prefer to use lighttpd
over apache for my server.
Jason
On 6/28/05, Richard Sandilands
<infoarts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi there
>
> I have a couple of rails apps running under lighttpd on OS X. However,
> the installation of the second app has caused problems. When I run the
> second app, instead of getting its login screen, I am getting the
> login screen for the first app minus CSS styling!
>
> If I directly try and access the login controller for the second app,
> http://gtd.dev/login I get a routing error relating to the accounts
> controller, which exists in the first app only!
>
> So I guess my lighttpd.conf is screwed up somehow. Here''s the
relevant
> section (it is the gtd.dev app that is not loading properly, except
> under webbrick)
>
> $HTTP["host"] =~ "360new.dev" {
> server.error-handler-404 = "/dispatch.fcgi"
> server.document-root =
"/Users/bongoman/Sites/360new.dev/public/"
> fastcgi.server = ( ".fcgi" =>
> ( "localhost" =>
> (
> "min-procs" => 1,
> "max-procs" => 5,
> "socket" => "/tmp/railsapp.fcgi.socket",
> "bin-path" =>
"/Users/bongoman/Sites/360new.dev/public/dispatch.fcgi",
> "bin-environment" => ( "RAILS_ENV" =>
"development" )
> )
> )
> )
> }
>
> $HTTP["host"] =~ "gtd.dev" {
> server.error-handler-404 = "/dispatch.fcgi"
> server.document-root = "/Users/bongoman/Sites/gtd.dev/public/"
> fastcgi.server = ( ".fcgi" =>
> ( "localhost" =>
> (
> "min-procs" => 1,
> "max-procs" => 5,
> "socket" => "/tmp/railsapp.fcgi.socket",
> "bin-path" =>
"/Users/bongoman/Sites/gtd.dev/public/dispatch.fcgi",
> "bin-environment" => ( "RAILS_ENV" =>
"production" )
> )
> )
> )
> }
>
> Any clues would be appreciated.
>
> Richard
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>