Hi,
I have a problem with Apache 2 and mod_fcgid.
In fact, it seems there are correctly installed and configured: my
rails application works (see http://www.cedrich.be/index ) ... but the
stylesheets aren''t loaded.
The generated url ( <%= stylesheet_link_tag "styles", :media =>
"all"
%> ) looks correct.
But when I try to access the stylesheet (see
http://www.cedrich.be/stylesheets/styles.css ), I have a HTTP 500 error
(internal server error).
** Apache 2 ( under FreeBSD 6) configuration:
LoadModule fcgid_module libexec/apache2/mod_fcgid.so
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
SocketPath /tmp/fcgi_ipc
DefaultInitEnv RAILS_ENV production
IdleTimeout 600
ProcessLifeTime 3600
MaxProcessCount 8
IPCConnectTimeout 60
IPCCommTimeout 60
</IfModule>
** Virtual host configuration :
<VirtualHost *:80>
DocumentRoot /var/www/cedric/www.cedrich.net/public/
ServerName www.cedrich.be
CustomLog /var/log/bepolytech/cedrich combined
ErrorLog /var/log/bepolytech/cedrich.error
<Location />
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</Location>
ErrorDocument 500 /500.html
ErrorDocument 404 /404.html
<Directory "/var/www/cedric/www.cedrich.net/public/">
SetHandler fcgid-script
Options Indexes +FollowSymlinks +ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
** And my public/.htaccess (uncommented lines):
AddHandler fcgid-script .fcgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
Could you help me ?
Thanks !
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---
I think all non-rails URL''s ( like http://www.cedrich.be/images/rails.png ) are wrong ( HTTP 500 error). It''s weird :s --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
hi cedric in .htaccess u have to put RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] not RewriteRule ^(.*)$ dispatch.cgi [QSA,L] also this is weird u should check again if files are uploaded also why did u copy and paste .htaccess rules in the apache config, u should put it in only one place -- Heri R. http://sprinj.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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Hi My .htaccess is now correct and I removed the rules from apache config. And the files are uploaded... I don''t understand how to successfully configure apache and fcgid ... grrrrr .... --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Oct 23, 2006, at 12:06 AM, Cédric H. wrote:> My .htaccess is now correct and I removed the rules from apache > config. > And the files are uploaded... > > I don''t understand how to successfully configure apache and fcgid ... > grrrrr ....I would *highly* recommend using mongrel instead. http://mongrel.rubyforge.org/ -- -- Tom Mornini --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Yes but the server where I host my ror application hosts some other websites ( php, etc) ... I could try with an apache proxi server, and mongrel but it''s more complicated. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Correction: it''s not as complicated as I though: http://mongrel.rubyforge.org/docs/apache.html :D --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Mon, 23 Oct 2006 07:10:16 -0000 "Cédric H." <cedric.hernalsteens-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Correction: it''s not as complicated as I though: > > http://mongrel.rubyforge.org/docs/apache.html > > :Dhttp://nanoweb.si.kz/ <-- The PHP kind of like mongrel sort of thingy you could probably use. It''s actually pretty fast, and it''d make your php apps get inline with the theme of "just use http". But, I haven''t actually used it. -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---