-2

I have done the configuration on AWS I'm able to access yourdomain.com(For example) but not able to access http://www.yourdomain.com?

I'm using Amazon EC2 virtual server cloud and route 53 hosted zones.

halfer
  • 19,824
  • 17
  • 99
  • 186
Raj Bhatia
  • 1,049
  • 4
  • 18
  • 37
  • Did you configure a "www" CNAME in your DNS? Did you configure an SSL certificate for "https"? Your question lacks all needed details, and doesn't even specify what service you are using on AWS to host your website. – Mark B Apr 12 '16 at 16:52
  • I have updated the question and I have not configured a "www" CNAME in my DNS. can you provide me a example of this..? – Raj Bhatia Apr 12 '16 at 17:03
  • I have configure a "www" CNAME in my DNS like Name-www.yourdomain.com Type-CNAME Value-yourdomain.com. Is it correct..? – Raj Bhatia Apr 12 '16 at 17:19
  • thank you very much, your provided hit worked. – Raj Bhatia Apr 12 '16 at 17:33

2 Answers2

2

As Mark B said, your question lacks a lot of the necessary details, however I will answer based on a few assumptions.

1) I'm assuming that your instance is publicly accessible
2) I'm assuming that your instance is not inside a VPC
3) I'm assuming that your instance is not behind a load balancer

First, go to your EC2 instance and copy the public DNS of your instance. IP's can change over time, therefore best practice is to use the public DNS as the value.

Next go to Route 53, and go to the Hosted Zone for your domain and click the blue button that says "Create Record Set".

In the name field put: www
In the type, select: CNAME
In the value field you'll paste the DNS for the EC2 instance

Click create.

If you've done this right, and your security groups are correctly configured, you should be able to now visit your site using www.yourdomain.com.

hephalump
  • 5,860
  • 1
  • 22
  • 23
0

Below solution worked for me. Name-www.yourdomain.com Type-CNAME Value-yourdomain.com. (Dot is important)

Raj Bhatia
  • 1,049
  • 4
  • 18
  • 37