Forum: Ruby on Rails stylesheet_link_tag and apache2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Guest (Guest)
on 2006-03-28 18:09
On apache2, my rails application cannot access my stylesheet.

  <%= stylesheet_link_tag 'my_railsblog_stylesheet' %>

however, all is fine if I run my application on webrick!


why? Am I doing something wrong with my apache configuration:

# My Apache configuration
<VirtualHost 10.0.0.14:8091>
  ServerName 10.0.0.14:8091
  DocumentRoot /home/ac/railsblog/public/
  ErrorLog /home/ac/railsblog/log/server.log
  <Directory /home/ac/railsblog/public/ >
    Options ExecCGI FollowSymLinks
    AllowOverride all
    Allow from all
    Order allow,deny
  </Directory>
</VirtualHost>
Guest (Guest)
on 2006-03-28 18:17
put
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

where it belongs and now all is fine.
This topic is locked and can not be replied to.