This is what I added to the apache.conf:
<Directory /var/www/rubyproject/public>
Options ExecCGI FollowSymlinks
AllowOverride all
Order allow,deny
Allow from all
And this is how my .htaccess in /public looks like:
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
ErrorDocument 500 “
Application error
Rails application failed to
start properly”
If you need more logs/confs, tell me.
I’m trying to solve this problem for 2 days now and I’m absolutely
desperate. Thanks in advance!
maybe test with a simple dispatch.fcgi one that just prints hello?
Looks like it’s an apache error mostly (?)
check your logs, rails logs, error logs.
GL!
-Roger
Heinz S. wrote:
If you need more logs/confs, tell me.
I’m trying to solve this problem for 2 days now and I’m absolutely
desperate. Thanks in advance!
maybe test with a simple dispatch.fcgi one that just prints hello?
Looks like it’s an apache error mostly (?)
check your logs, rails logs, error logs.
GL!
-Roger
Sorry but I don’ really get what you mean by saying replace
public/index.html. I normally delete it and that’s it. Could you please
explain what you mean by replacing index.html and setting up a route?
Thanks a lot.
Roger P. wrote:
lookup on google how to replace public/index.html (you set up a route
for it).
Well, I tried the first 5 page results from Google and I’m not a bit
smarter how to solve that problem. I might be too stupid or just don’t
get your point but thanks anyway
Roger P. wrote:
sorry. what I meant was google search for
rails replace public/index.html
GL!
Like I said it’s all works when I use WEBrick so the project itself is
100% working. So the routes and everything are set prooperly.
WEBrick: Project works just fine.
Apache: 500 Error.
Roger P. wrote:
Thanks for doing that.
What you need to do is delete that file and set up a ‘route’ for ‘’
a la
map.connect ‘’, :controller => ‘site’, :action => ‘index’
(from the second link).
GL!
I used some HowTo’s to get RoR running on my Debian (etch) and Apache 2
system. None of them work for me.
I always get a 500 Error. When I start Webrick, all is working just fine
but I just don’t get it working with Apache.
Have you checked the apache error log? webrick error log?
Thanks for doing that.
What you need to do is delete that file and set up a ‘route’ for ‘’
a la
map.connect ‘’, :controller => ‘site’, :action => ‘index’
(from the second link).
GL!