Stylesheet_link_tag and apache2


#1

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


#2

put
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]

where it belongs and now all is fine.