title: Background image not showing in Rails 3.1 production
body: <p>I have an issue with background images not showing up in production mode in a Rails 3.1 app (3.1.0.rc8).  I'm also using sprockets 2.0.0 and passenger 3.0.8.</p>
  
  <p>My stylesheet is .scss and uses image_tag('...') in the background section.  When I deploy I am precompiling the assets.</p>
  
  <p>My production server is using Apache2 with Passenger, with the application deployed to a sub URI.  The virtual host is defined as:</p>
  
  <pre><code>ServerName wibble
  DocumentRoot /srv/www
  ...
  RailsBaseURI /myapp
  &lt;Directory /srv/www/myapp&gt;
      Options -MultiViews
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The application is actually deployed to /srv/applications/myapp and I've created a symbolic link from /srv/www/myapp to /srv/applications/myapp/current/public.</p>
  
  <p>The stylesheet is being served correctly, but when I inspect the element for the logo it's coming up as:</p>
  
  <pre><code>url("http://wibble/assets/logo-xxx.png")
  </code></pre>
  
  <p>intead of:</p>
  
  <pre><code>url("http://wibble/myapp/assets/logo-xxx.png")
  </code></pre>
  
  <p>Actually, if I change the URL as above using edit declaration in Opera, it does show the logo correctly.  This suggests to me that I'm referencing the image correctly, and it's being correctly precompiled.  The actual stylesheet is fine so I'm also picking up the assets correctly.  Just seems as if the RailsBaseURI is being missed out the url path.</p>
  
  <p>I've tried all sorts in the stylesheet - using .erb, asset_path, /myapp/logo.png, myapp/logo.png - and nothing works.  It all works fine in development mode with the thin server.</p>
  
  <p>Any help will be greatly appreciated.</p>