Mod_rails showing plain text instead of actual page

hello!

i got this forum powered by apache and mod_rails

lately when i create / edit posts, i get plain html text showing up
instead of the actual page.

here’s what i see:

Content-Type: text/html; charset=utf-8
Set-Cookie:
_mysite_session=BAh7CzoOcmV0dXJuX3RvMDoKdGl0bGV7BmkVdToJVGltZQ2IDhuAK1UeADoL
%250AdG9waWNzewZpBnU7Bw2HDhuA2%252FZJ7zoJdXNlcmkGIgpmbGFzaElDOidBY3Rp
%250Ab25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsAOgxj
%250Ac3JmX2lkIiViMmRlMzgxNGMzY2ZjYmIxZGU4NzRkN2U1YjdiYmQxZQ%253D%253D–
ac9348d5ff50b6471329f80bdcc3b896fce0840d; path=/
Status: 500 Internal Server Error
X-Powered-By: Phusion Passenger (mod_rails) 1.0.1
X-Runtime: 0.00469
Cache-Control: no-cache
Content-Length: 854

error 500 @import "/stylesheets/display2.css";

sorry, something went wrong

we've been notified and will take a look at it shortly.

HTTP/1.1 200 OK
Date: Sun, 20 Apr 2008 08:05:49 GMT
Server: Apache/2.2.4 (FreeBSD) Phusion_Passenger/1.0.1
X-Powered-By: Phusion Passenger (mod_rails) 1.0.1
X-Runtime: 0.04539
ETag: “0a31328a302a00012f17fc4ad2a11f5c”
Cache-Control: private, max-age=0, must-revalidate
Set-Cookie:
_mysite_session=BAh7CzoOcmV0dXJuX3RvMDoKdGl0bGV7BmkVdToJVGltZQ2IDhuA
%252FM8eFzoL
%250AdG9waWNzewZpBnU7Bw2HDhuA2%252FZJ7zoJdXNlcmkGOgxjc3JmX2lkIiViMmRl
%250AMzgxNGMzY2ZjYmIxZGU4NzRkN2U1YjdiYmQxZSIKZmxhc2hJQzonQWN0aW9u
%250AQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D
%253D–0cbb653970fceb4420abe42eda9d444b0c585bd5; path=/
Content-Length: 2816
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

mysite

books

      <tr>
        <td>
          <span><a href="/forums/books/topics/most-popular-books-

right-now" rel=“bookmark”>most popular books right now by sultan 2
minutes ago - sticky


topics



© 2008 mysite. all rights reserved.



Content-Type: text/html; charset=utf-8
Set-Cookie:
_mysite_session=BAh7CzoOcmV0dXJuX3RvMDoKdGl0bGV7BmkVdToJVGltZQ2IDhuA
%252FM8eFzoL
%250AdG9waWNzewZpBnU7Bw2HDhuA2%252FZJ7zoJdXNlcmkGOgxjc3JmX2lkIiViMmRl
%250AMzgxNGMzY2ZjYmIxZGU4NzRkN2U1YjdiYmQxZSIKZmxhc2hJQzonQWN0aW9u
%250AQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D
%253D–0cbb653970fceb4420abe42eda9d444b0c585bd5; path=/
Status: 500 Internal Server Error
X-Powered-By: Phusion Passenger (mod_rails) 1.0.1
X-Runtime: 0.04539
ETag: “0a31328a302a00012f17fc4ad2a11f5c”
Cache-Control: private, max-age=0, must-revalidate
Content-Length: 854

error 500 @import "/stylesheets/display2.css";

sorry, something went wrong

we've been notified and will take a look at it shortly.

here’s my apache httpd.conf:

ServerRoot “/usr/local”

Listen 80

LoadModule mime_module libexec/apache22/mod_mime.so
LoadModule authz_host_module libexec/apache22/mod_authz_host.so
LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/
passenger-1.0.1/ext/apache2/mod_passenger.so
RailsSpawnServer /usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.1/bin/
passenger-spawn-server
RailsRuby /usr/local/bin/ruby18

DocumentRoot “/usr/local/www”

User www
Group www

AllowOverride None Order deny,allow Deny from all

ErrorLog /var/log/httpd-error.log

LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i \"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common CustomLog /var/log/httpd-access.log combined

DefaultType text/plain

TypesConfig etc/apache22/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz

NameVirtualHost *:80

<VirtualHost *:80>
ServerName mysite.com
ServerAlias www.mysite.com
DocumentRoot /services/httpd/mysite.com/public
<Directory “/services/httpd/mysite.com/public”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

RailsBaseURI /

and this is all i see in log/production.log:

Processing TopicsController#show (for 63.12.128.144 at 2008-04-20
03:24:36) [GET]
Session ID:
BAh7BzoKdGl0bGV7BmkVdToJVGltZQ2IDhuAtfXqYSIKZmxhc2hJQzonQWN0%0AaW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA
%3D%3D–f637a4b4fcab4f610f77a3de430315c5a5028398
Parameters: {“format”=>“ico”, “action”=>“show”, “id”=>“favicon”,
“controller”=>“topics”, “forum_id”=>“books”}
Completed in 0.01589 (62 reqs/sec) | Rendering: 0.00059 (3%) | DB:
0.00000 (0%) | 406 Not Acceptable [http://mysite.com/forums/books/
topics/favicon.ico]

am i the only one with this problem?

or has this mailinglist gone stale? :wink:

Mister Blood R. wrote:

am i the only one with this problem?

or has this mailinglist gone stale? :wink:

Did you ever resolve this issue??

Here is what I did:

  • used radiant to create a simple blog.
  • script/server webrick -e production
  • browser to http://localhost:3000

Everything cool… Blog looks good and admin pages look good.

Blog looks good, but, admin section has no style.