step 1. create a bucket through aws console.
the bucket name should be like "www.egtry.com" instead "egtry".
setup index and error page
now the bucket can be accessed through web endpoint or REST API endpoints. The web endpoint is region-specific
web endpoint | REST API endpoints |
http://images.upmover.com.s3-website-us-east-1.amazonaws.com/ | http://images.upmover.com.s3.amazonaws.com/ |
step 2. create a CNAME wwww.egtry.com, point to images.upmover.com.s3-website-us-east-1.amazonaws.com. Forward domain egtry.com to www.egtry.com
Now http://www.egtry.com and http://egtry.com would retrieve the document of the index page defined when the bucket was created
(optional) amazon cloudfront. create cloudfront, add CNAME "www.egtry.com", custom origin of images.upmover.com.s3-website-us-east-1.amazonaws.com. in the domain host, repoint www.egtry.com to cloudfront url: xxxxx.cloudfront.net