title: Rails 4, Passenger, and Apache virtual host with asset pipeline
body: <p>I have a Rails 4 app that includes <code>gem 'jquery-ui-rails', '&gt;= 5.0.0'</code> in the Gemfile.  I have managed to deploy this app to an Apache virtual host using Passenger.  My app is served from <code>http://server.com/myapp</code>  All is well except when I use the JQuery UI indeterminate progress bar, the animated GIF cannot be found so it appears as a blank gray box.</p>
  
  <p>I have determined the problem is almost exactly as stated in <a href="https://stackoverflow.com/questions/18906513/dynatree-unable-to-find-assets-in-rails-production-on-multi-virtual-host-apache">Dynatree unable to find assets in rails production on multi-virtual host apache install</a></p>
  
  <p>Basically, the app is looking in <code>http://server.com/assets/jquery-ui/animated-overlay-xxx.gif</code> instead of <code>http://server.com/myapp/assets/jquery-ui/animated-overlay-xxx.gif</code></p>
  
  <p>How and where do I inject the <code>/myapp/</code> snippet?</p>