[Rails] 0.10 + Apache + fcgi

Belorion belorion at gmail.com
Mon Feb 28 22:33:03 GMT 2005


I've been struggling to get a webservice I wrote into production with
Rails 0.10, Apache 2.0.51 and the latest snap of fastcgi, and `gem
install fcgi`

Using http://wiki.rubyonrails.com/rails/show/FastCGI I have gotten
*most* of the way, though I wasn't sure if this needed updating for
Rails 0.10 (especially in regard to the .htaccess stuff).

My Apache document root is /var/www/index/.  I created a directory
/var/www/applications for my rails apps, and did a

ln -s /var/www/index/applications /var/www/applications

I got through all sorts of permission errors, but I am now left with a
FileNotFound error.  Lets say named my rails app "myapp" (i.e. did a
`rails myapp` when I started).  I have the following in my apache
conf:

FastCgiServer /var/www/index/applications/myapp/public/dispatch.fcgi
-initial-env RAILS_ENV=production

I've always used webrick in the past.  When I wanted to access the app
via a webrick server, I would http://myserver:3000/mycontroller/wsdl
to get the wsdl specification for my webservice.  Or, likewise,
http://myserver:3000/mycontroller/myaction.

What would be the url for my production line with apache?  I've tried:

http://myserver/applications/myapp/mycontroller/wsdl
http://myserver/applications/myapp/mycontroller/myaction
http://myserver/applications/mycontroller/myaction
http://myserver/applications/mycontroller/

But nothing seems to work.  I get 404 FileNotFound errors everytime. 
What would be the url I need to go to?  Am I missing something here?
Am I missing a necessary configuration step with this fancy new Routes
thing?

Thanks
Matt


More information about the Rails mailing list