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 !