Forum Moderators: phranque
I have two services that are being combined to use a single port.
I'm trying to proxy the to a different port on the same host based on the URI using apache's RewriteRule.
Examples:
Original URL Want to redirect to
------------ --------------------
:802/direct1 <samehost>:4000
:802/direct2 <samehost>:8000
To make matters more complicated, the connections are https and the two real servers (at 4000 and 8000) use different certs.
I've been trying something along the lines of this:
<IfDefine SSL>
Listen 802
</IfDefine>
[...]
<VirtualHost _default_:802>
RewriteRule ^/direct1/(.*) [localhost:4000...] [P]
RewriteRule ^/direct2/(.*) [localhost:8000...] [P]
</VirtualHost>
This isn't working, however. The attempts are unable to establish their SSL connections. I was hoping the proxy feature would just pass through the bits and let the two end points negotiate the connection.
That doesn't seem to be the case, however.
Thanks for any help.