Redirecting all HTTP traffic to HTTPS that will reverse proxy specific URI

-- Requirement --

I have a Sun web server 6.1 SP4 that sits in a DMZ that must securely reverse proxy traffic to an internal application server listening on 443.

The web server instance has two listen sockets, 80 and 443.

The web server instance must accept traffic on port 80 but re-direct it to 443 so all subsequent traffic with the client happens over HTTPS.

HTTPS traffic for "www.mydomain.com/myapp/" must be reverse proxied to the internal app server, "https://myapp.mydomain.com/myapp/".

-- Current set-up --

The server reverse proxies both HTTP and HTTPS traffic with the indicated URI.

How can I constrain the reverse proxying to HTTPS traffic?

Thanks for your help,

Jez

[755 byte] By [secEng] at [2007-11-26 7:49:54]
# 1
You want two distinct sites with distinct content, so you should create a separate virtual server class to handle port 443 traffic. That virtual server class will have its own obj.conf file, and you should add your Web Server 6.1 Reverse Proxy Plugin configuration directives to it.
elving at 2007-7-6 20:07:05 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Thanks Chris that worked perfectly.

Aside

--

Before your solution I had (unsuccessfully) tried the following obj.conf directive

<Client security="false">

NameTrans fn="redirect" from="/" url-prefix="https://www.mydomain.com/"

</Client>

However, it didn't work - is it not possible to use the <Client security="false"> in this manner?

secEng at 2007-7-6 20:07:05 > top of Java-index,Web & Directory Servers,Web Servers...