title: Apache; Phusion Passenger 3 RackBaseURI works only in Production environment for Rails 3
body: <p>I have a few rails 3 applications which run under their own Rails/Rack BaseURI.  </p>
  
  <p>Under Passenger 2 I was using RailsBaseURI to "mount" individual rails apps under a single domain; this worked normally.  I upgraded to Passenger 3.0.2 and now when I'm running in development mode my Rails 3 apps want to prepend AND append the baseURI, but only in the development environment.  Under production, all is well. </p>
  
  <p>For example: </p>
  
  <p>App lives in /fsroot/otherdir/myapp
  Target file lives in /fsroot/otherdir/myapp/public/path/to/asset.css</p>
  
  <p>in vhost config:
  RackBaseURI /myapp</p>
  
  <p>Note:symlink in virtualhost DocumentRoot is named myapp and pointed to /fsroot/otherdir/myapp/public</p>
  
  <p>In a view:
  stylesheet_link_tag '/path/to/asset.css' </p>
  
  <p>will produce</p>
  
  <p>No such file or directory - Asset file not found at '/fsroot/otherdir/myapp/public/myapp/path/to/asset.css'</p>
  
  <p>Note that the RackBaseURI shows here before and after the public folder.</p>
  
  <p>I tried copying the development.rb environment file over to production.rb and rebooting apache but it does the same thing.  There is apparently some other directive which is being assumed in each of these environments but I have no idea what it would be.  I tried using RailsBaseURI and RackBaseURI but both behaved identically.</p>
  
  <p>Rails 3 Wizard guidance is appreciated.  </p>