Forum Moderators: phranque

Message Too Old, No Replies

Using RewriteRule in Proxy mode with https

How to handle multiple certs?

         

Ikcor

7:42 am on Jan 26, 2008 (gmt 0)

10+ Year Member



I'm new at this, so please forgive any n00bness.

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.

jdMorgan

3:58 pm on Feb 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Let's give this thread a kick...

(Bump)

Jim