title: apache proxying subdir to rails app
body: <p>I would like to run a rails application (redmine, actually) in a subdirectory off my domain. SOmething like <a href="http://foobar.com/redmine" rel="nofollow">http://foobar.com/redmine</a>. Redmine is running as a stand-alone passenger instance that I would like to proxy requests to.</p>
  
  <pre><code>passenger start -a 127.0.0.1 -p 8000 -e production
  </code></pre>
  
  <p>I can confirm that the app is running if I access it locally from the server.</p>
  
  <pre><code>lynx http://127.0.0.1:8000/
  </code></pre>
  
  <p>Now I can't figure out how to get Apache to serve the app properly. This is what I have, but it doesn't work quite right:</p>
  
  <pre><code>Alias /redmine /home/redmine/www/redmine-1.2/public
  &lt;Directory /home/redmine/www/redmine-1.2/public&gt;
    allow from all
    ProxyPass http://127.0.0.1:8000
    ProxyPassReverse http://127.0.0.1:8000
  &lt;/Directory&gt;
  </code></pre>
  
  <p>It serves static assets fine from the public folder but doesn't seem to proxy requests properly. Everything returns 403. Apache log:</p>
  
  <pre><code>client denied by server configuration: proxy:http://127.0.0.1:8000
  </code></pre>