I guess my question would start with this: why are you using fcgi?
On Jan 6, 2:57 am, ZebaMomin <[email protected]> wrote:
> Hi.
> I'm trying to deploy my rails application on ubuntu server using apache2
> and fcgid..but have not been successful..
> I am using ruby 1.8.6, rails 2.2.2 and fcgi 0.8.7 gem...
> I am able to start apache successfully and view the Aptana RadRails
> welcome page..But giving my controller's name gives me a 404 error...
> I have made required changes in my /public/.htaccess and
> /public/dispatch.fcgi files....as=>
>
> .htaccess(w/o comments)
>
> AddHandler fastcgi-script .fcgi
> AddHandler fcgid-script .fcgi
> AddHandler cgi-script .cgi
> Options +FollowSymLinks +ExecCGI
> dispatch.*fcgi*
> RewriteEngine On
> RewriteRule ^$ index.html [QSA]
> RewriteRule ^([^.]+)$ $1.html [QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>
> ErrorDocument 500 "<h2>Application error</h2>Rails application failed to
> start properly"
>
> dispatch.fcgi
>
> #!/usr/bin/ruby
> require File.dirname(__FILE__) + "/../config/environment"
> require 'fcgi_handler'
> require 'rubygems'
> require_gem 'fcgi'
> RailsFCGIHandler.process!
>
> I am attaching my httpd.conf file...
>
> I have checked that my VirtualHost works perfectly...but it doesn't seem
> to start my rails application....
>
> Can someone please tell me where am I going wrong????
> Thanks in advance..
>
> --
> View this message in
> context:http://www.nabble.com/RoR%2C-Apache2%2C-fcgid-and-ubuntu...-tp2130562...
> Sent from the RubyOnRails Users mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---