title: How do I use Rack::Proxy within Rails to proxy requests to a specific path to another app
body: <p>I found this great <a href="http://livsey.org/blog/2012/02/23/using-rack-proxy-to-serve-multiple-rails-apps-from-the-same-domain-and-port/" rel="noreferrer">blog post</a> on how to use <code>Rack::Proxy</code> as a separate proxy app. The article explains how he uses <code>Rack::Proxy</code> to proxy requests to <code>http://localhost:3000</code> to an app on port <code>3001</code> and requests to <code>http://localhost:3000/api</code> to an app on port <code>3002</code>. I want to do the same thing, but I do not want to create a separate proxy app. Instead, I want my main Rails app to proxy requests to <code>/blog</code> to a different app.</p>
  
  <p>Blog Post: <a href="http://livsey.org/blog/2012/02/23/using-rack-proxy-to-serve-multiple-rails-apps-from-the-same-domain-and-port/" rel="noreferrer">http://livsey.org/blog/2012/02/23/using-rack-proxy-to-serve-multiple-rails-apps-from-the-same-domain-and-port/</a></p>