Results 1 to 2 of 2
Jun 23, 2006, 13:15 #1
- Join Date
- Feb 2004
- Scottsdale, Arizona
- 0 Post(s)
- 0 Thread(s)
RoR on FreeBSD with Apache2/fcgid - Only seeing contents of dispatch.fcgi
I followed along with the tutorials on the ruby on rails wiki to get Ruby on Rails running with Apache2 and Mod FCGID (Rather than Fast_Cgi). I have an application that works just fine when I run it using WEBrick (script/server) however when I try to access that same application when it's being served with Apache2 all I can see are the contents of the dispatch.fcgi file.
What's also strange is that I see the same contents of dispatch.fcgi when I click on the "About your Application's Environment" on the "Welcome Aboard" page.
Here is what I see when I try to access part of my app (and when clicking on the "About your Application's Environment" link):
#!/usr/local/bin/ruby ## # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. # # By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log # and the GC period is nil (turned off). A reasonable number of requests # could range from 10-100 depending on the memory footprint of your app. # # Example: # # Default log path, normal GC behavior. # RailsFCGIHandler.process! # # # Default log path, 50 requests between GC. # RailsFCGIHandler.process! nil, 50 # # # Custom log path, normal GC behavior. # RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log' # require File.dirname(__FILE__) + "/../config/environment" require 'fcgi_handler' RailsFCGIHandler.process!
Part of my httpd.conf is
LoadModule fcgid_module libexec/apache2/mod_fcgid.so <IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi </IfModule>