I am experiencing a VERY bizarre problem with Rails. I have Rails
running on FCGI on Apache with no problems when I visit my website
using the 'www' subdomain (i.e., http://www.mydomain.com). However, if
I remove the 'www' subdomain (i.e., http://mydomain.com), I get the
dreaded "Rails application failed to start properly" message.
Has anyone out there experienced anything like this? I appreciate any
help.
Fortunately, I found a post on a forum that clued me into the problem,
or I probably never would have solved this...
Somehow session cookies in the temp directory that needed to be deleted
were causing a problem. I executed a 'rm -f /tmp/ruby_sess.*' and my
Rails app ran fine with or without the www subdomain. I can't say if
this is a bug in Rails or a Ruby library, but I hoped it gets fixed, as
it took quite a long time to figure it out.