[LRUG] Error in production.log
Chris Lowis
chris at chrislowis.co.uk
Thu Aug 30 02:03:51 PDT 2007
Sorry to reply to my own post. I found a solution on a dreamhost wiki
discussion page. Here's a copy for reference, on the off-chance anyone
else has the same problem :
I ran into a problem very similar to this tonight. Rails was trying to
figure out what the "stylesheet" and "images" actions were, though
everything else worked perfectly. Here's how I solved it: The default
.htaccess file looks like this:
# For better performance replace the dispatcher with the fastcgi one
#
# Example:
#RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
RewriteEngine On
DON'T just uncomment the RewriteRule line. Instead, go down like 10
more lines and replace:
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
with:
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
This gave me perfect linking with stylesheets and images.
Thanks again for the help,
Chris
More information about the Chat
mailing list