I have recently bought an amazon ec2 instance. Now I want to host a website. I have googled and found some useful info but there is some confusion in my mind.
Suppose domain name is "http://www.example.com"
That's what I have done so far.
I have configured my domain locally on amazon ec2 instance and it's working fine when I open that url in amazon ec2 instance's browser. I have used http://www.example.com in /etc/hosts file point it to 127.0.0.1 to open locally on instance.
I have got one elastic ip address and associated it with the instance.
I have changed http://www.example.com A's record with the elastic IP that I have got in above step.
Now what should I do?
When some user will open my website anywhere in the world, will it get pointed to my instanace's ip address?
Have I done proper configurations for website on instance?