Hosting a site on amazon ec2

Posted by Khalid Mushtaq on Server Fault See other posts from Server Fault or by Khalid Mushtaq
Published on 2012-09-23T09:31:27Z Indexed on 2012/09/24 21:39 UTC
Read the original article Hit count: 314

Filed under:
|

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?

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about hosting