Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.9k views
in Technique[技术] by (71.8m points)

amazon web services - AWS S3 static website is not getting up from subdomain

I have created subdomain by following this link 'demo.mydomain.com' which is pointing s3 bucket static website (http://demo.mydomain.com.s3-website.ap-south-1.amazonaws.com). Website is getting up from s3 link (http://demo.mydomain.com.s3-website.ap-south-1.amazonaws.com). But When I am trying to access it from subdomain name its giving

This site can’t be reached

I have followed bellow step during creation of subdomain:

  1. created subdomain(demo.mydomain.com) in hosted zone where my domain(mydomain.com) was already present.
  2. created record with blank record name
  3. Value/Route traffic to is 'Alias to s3 website end point'
  4. select location where my s3 bucket available
  5. select bucket and record type is IPv4

I couldn't figure it out what is I am missing. Any help would be appreciable


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

created record with blank record name

The record that you are creating in mydomain.com hosted zone shouldn't be blank. It should be called demo so that the full name, after the records creation, would be demo.mydomain.com. So it would look like something as below (depending on your region):

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...