title: How to change the directory public assets are served from in rails?
body: <p>My setup:
   thin running on port 1234 with <code>--prefix /foobar</code>
   apache running on port 80
   apache reverse proxies <code>/foobar</code> to thin on port 1234</p>
  
  <p>I would like the static assets to not be served via the proxy to thin, but instead be served at <code>/assets</code> directly via apache instead.</p>
  
  <p>I have to use a relative path because I don't know the host name/ip of the rails application before startup (it's app-in-a-box that should be able to be moved around).</p>
  
  <p>I found <code>config.action_controller.asset_host</code> in <code>production.rb</code>, but I can't set that to a relative path. When I do it gets confused and creates really bogus URLs.</p>
  
  <p>How can I make this work?</p>