users@glassfish.java.net

Re: Let 2 domain run on the same porrt 443

From: <glassfish_at_javadesktop.org>
Date: Thu, 16 Sep 2010 16:46:13 PDT

A different approach if you want both apps on one machine and using one IP is to install a transparent reverse proxy like Squid or something similar that itself listens on 443 and forwards requests to the appropriate glassfish domain/web-app based on the requested domain, context root, or both.

Eg.
- Request for https://mydomain.com/app1, proxy can forward to https://mydomain:8080/app1
- Request for https://mydomain.com/app2, proxy can forward to https://mydomain:8181/app2

The proxy can sit on the same machine, or on another machine.
[Message sent by forum member 'jjcharle']

http://forums.java.net/jive/thread.jspa?messageID=483009