httpd - reverse proxy on multiple ports
<p>What I want to be able to do is take the following:</p>

<pre><code>http://localhost:10000
http://localhost:11000
http://localhost:12000
</code></pre>

<p>and route them respectively like follows:</p>

<pre><code>http://my-app (this is port 10000 traffic)
http://my-app/app  (this is port 11000 traffic)
http://my-app/blog (this is port 12000 traffic)
</code></pre>

<p>Here is my conf.d file - </p>

<pre><code>&lt;VirtualHost *:80&gt;
  ServerName my-app.domain.com
  ServerAlias my-app

  Redirect / https://my-app.domain.com/
&lt;/VirtualHost&gt;

&lt;VirtualHost *:443&gt;
  ServerName my-app.domain.com
  ServerAlias my-app

  Include ssl/default/ssl.cfg

  RewriteEngine On
  ProxyRequests Off
  ProxyPreserveHost On
  RemoteIPHeader X-Forwarded-For
  RequestHeader set X-FORWARDED-SSL on
  RequestHeader set X-FORWARDED_PROTO https


  ProxyTimeout 900
  TimeOut 900

  RewriteRule ^$ / [R]

  ProxyPass / http://localhost:10000/
  ProxyPassReverse / http://localhost:10000/

  RewriteRule ^/app/(.*) http://localhost:11000/$1 [P,L]
  ProxyPassReverse /app/ http://localhost:11000

&lt;/VirtualHost&gt;
</code></pre>

<p>The re-direct is working for the initial port, but not for traffic going to port 11000.  I'm sure I'm doing something stupid but I don't know what.</p>