Configuring Rails under Apache


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3 views
Hi all.
Set rvm, everything is fine. Did rails new example.

Further, the idea is that it is necessary to throw .htacces in public.

AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)/!$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
An ErrorDocument 500 "Application error Application failed to start properly"


And to state /public as DocumentRoot.

But here is the problem: dispatch.fcgi (and dispatch.cgi also) absent. Where to get them?

Soft: Ubuntu Server 10.04 64-bit, Ruby 1.9.2, Rails 3.0.3 and moderately curved hands.
by | 3 views

1 Answer

0 like 0 dislike
Don't understand why you .htaccess. You want rails application to work under apache? The passenger module installed?
I myself in rails recently, but managed to make a few new setups of servers for development, anything related to what you have written even once to do not have.
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked Jun 8, 2019 by IpatovAnton
110,608 questions
257,186 answers
0 comments
27,902 users