I would like to explain the scenario that we have then ask the question:
we have the domain:
- www.example.com
and the following sub domains:
- forum.example.com
- portal.example.com
- crm.example.com
and the following applications which are hosted on separate servers:
- forum - Server IP: 1.1.1.1, port: 1010
- portal - Server IP: 2.2.2.2, port: 2020
- crm - Server IP: 3.3.3.3, port: 3030
all the server are running behind a firewall
on the other hand we have only one public IP address:
10.10.10.10
so to link the local servers with the public ip we can create virtual hosting entries in the firewall and create public ports as following:
- 10.10.10.10:1010 will point to 1.1.1.1:1010
- 10.10.10.10:2020 will point to 2.2.2.2:2020
- 10.10.10.10:3030 will point to 3.3.3.3:3030
then we will configure the following A NAME record in the DNS ZONE:
- www.example.com - 10.10.10.10
so to go to the forum application, the user have to type:
- www.example.com:1010
and so on:
- www.example.com:2020 for portal
- www.example.com:3030 for crm
now, instead of using the port number we would like to use the sub domain, for example, if the user want to go to the forum he will just type:
- forum.example.com
and same for the other applications.
Is this possible to be done without purchasing new public IP addresses for each application?
Sorry for the long post. Thanks