samedi 4 décembre 2021

How to map AWS EC2 instance IP with PORT with sub domain

In AWS "EC2" instance , Different tools of my website is running in different ports. I can assess all tools with EC2 instance by hit "IP:PORT" For example: 3.143.113.214:81

I want to map Ec2 instance ports to the relative sub domains.

3.143.113.214:81  => MAPPING => "tool1.mydomain.com



3.143.113.214:82  => MAPPING => "tool2.mydomain.com"

To achieve this I followed this article AWS Route 53 mapping. but I didn't get perfect solution (there is not mapping with subdomains).

At the end of same following all thing of article AWS Route 53 mapping, I got subdomain that was redirect on my original EC2 instance IP with port. But This solution given in article provide redirect method, not mapping with subdomain. If I'm doing something wrong please guide me.

I heard about SRV record , that can use to mapping port with sub domains. but I'm not able to find perfect article to manage "SRV record" with "EC2 instance".

Can someone guide me, if "SRV record" is useful, then how can I map EC2 instance IP:PORT with subdomain.

If there is any other way, please guide me to achieve this.

Aucun commentaire:

Enregistrer un commentaire