The simplest method is to do IP address forwarding where you forward the incoming requests to Elastic IP provided by Amazon. But the shortcoming of this approach is that there will always be an additional redirect and a forward.
Describe here something like pointing my domain purchased from Bluechipspace to my Amazon EC2 webserver. Check it out.
- Go to Amazon AWS - services & select Route 53
- Click on Hosted Zones & Create a hosted zone with your name.
- Give domain name which you have bought, and make sure that you don’t add www. to it.
- Select type as Public Hosted Zone.
- Make a note of the Name Space servers, usually they are of 4 different entries, because you need them in the last step.
- Now we need to bring subdomain too, so your domain should also work.
- In name field type www.
- Type as A
- Alias as Yes
- In Alias Target select your site name
- Routing Policy: Simple
- Add theAmazon NameSpaceServers in Control panel of Domain Provider.
- Now go to Bluechipspace Client Area & under my domains, select settings.
- Change the Namespace Servers (you should see 2 servers name) to custom from default.
- One by one add all the 4 namespace servers you got. Save it and wait for 2–3 minutes.
- Then type your domain name in the browser and you will be redirected to your website if you follow the entire setup perfectly.
This is how it should be done.
It can take up to 24-72 hours for all the nameservers to propagate. but generally, it’ll happen almost immediately, or within the first half an hour.