Re: Mod Ruby acting as if it is not installed
Berin Loritsch <[email protected]> Tue, 15 Nov 2005 09:01:19 -0500
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Um, can anyone help me? I'm out of my element here. I don't have a
clear error message telling me why mod_ruby is not working. Its been a
week now, and I'd like to make my site live.
Berin Loritsch wrote:
>I'm trying to get mod_ruby to run a Rails app. I'm running the SVN trunk
>version, but it seems as if it is not even being invoked. I had the same
>results with the 1.2.4 version of mod_ruby.
>
>Please help me.
>
>I'm running Apache 2.0.54, mod_ruby-HEAD (1.2.5?), and rails 0.14.2.
>
>my .htaccess and dispatch.rb is attached.
>
>the pertenant part of my httpd.conf file is here:
>
><IfModule mod_ruby.c>
> RubySafeLevel 0
> RubyRequire rubygems
> RubyRequire apache/rails-dispatcher
> RubyTransHandler Apache::RailsDispatcher.instance
></IfModule>
>
>The site is here:
>
>http://d-haven.org:10120/
>
>
>------------------------------------------------------------------------
>
># General Apache options
>Options +ExecCGI
>SetHandler ruby-object
>RubyHandler Apache::RailsDispatcher.instance
>RubyOption rails_uri_root /
>RubyOption rails_root /home3/b/bloritsch/site
>RubyOption rails_env production
>
># If you don't want Rails to look in certain directories,
># use the following rewrite rules so that Apache won't rewrite certain requests
>#
># Example:
># RewriteCond %{REQUEST_URI} ^/notrails.*
># RewriteRule .* - [L]
>
># Redirect all requests not available on the filesystem to Rails
># By default the cgi dispatcher is used which is very slow
>#
># For better performance replace the dispatcher with the fastcgi one
>#
># Example:
># RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
>RewriteEngine On
>RewriteBase /
>RewriteRule ^$ index.html [QSA]
>RewriteRule ^([^.]+)$ $1.html [QSA]
>RewriteCond %{REQUEST_FILENAME} !-f
>RewriteRule ^(.*)$ dispatch.rb [QSA,L]
>
># In case Rails experiences terminal errors
># Instead of displaying this message you can supply a file here which will be rendered instead
>#
># Example:
># ErrorDocument 500 /500.html
>ErrorDocument 500 /500.html
>ErrorDocument 404 /404.html
># ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
>
>