Example:
I have one primary domain temp
www.product.com
For each client, I must have a separate subdomain associated with the same server with the same port (80), but with a different instance name (different .wars files)
www.client1.product.com www.client2.product.com www.clientn.product.com
(correct me if I am wrong). As I know, if I start a mooring instance, each will start from a separate port no
client1 war will start at port 3001 client2 war will start at port 3002 client3 war will start at port 3003
What is my question: how do I map all instances with port 80 to the corresponding identical subdomains
if i access
www.client4.product.com , I need the berth application to work in port 3004
Update:
for a deeper understanding of my architecture, if a Jet2 Jetty instance running on port 3002 goes into standby due to a runtime exception or a memory leak or a manual restart, all other berth instances work independently (similar to the architecture used by google appengine it uses a berth)
source share