I have an AWS EC2 instance with domain like http://ec2-some-ip-addres.compute-1.amazonaws.com/
Now I want to change this url (add a custom domain which is not registered) to some small alias like testing.webserver.com etc. Can we do that?
I have tried editing /etc/hosts file with
ip-address hostname alias
But not working. What is the best way to change the url without making a DNS entry on no-ip or some other services?
To access an Amazon EC2 instance with your own domain name, use a DNS server (eg Amazon Route 53) to point your domain name to the IP address of the EC2 instance.
The steps are:
example.com
server1.example.com
A
record in the DNS system to point to the Elastic IP addressYou can then access your instance via server1.example.com
.
See also: Routing Queries to an Amazon EC2 Instance
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With