I assume you have already signed up for Amazon Web Services S3. I also assume you have a domain registrar. For this example I'll be using GoDaddy, but there are other popular registrars.
- Register your domain
- Do this first if you haven't already to make sure you get the domain name you want.
- For these instructions I'll use example.com as the example domain.
- Create Bucket named for your domain
- Sign into AWS Management Console for S3
- Under Buckets, click Create Bucket
- Name the bucket: www.example.comThis should be the full host plus domain name
- Click Create
- Upload files (e.g. index.html)
- Select www.example.com from the list of buckets on the left
- Click Upload
- If prompted by your browser, enable Java for the uploader to work.
- Click Enable Enhanced Uploader
(I could not get the Add Files button to work in Chrome w/out the enhanced uploader) - Click Add Items
- Browse and select files to upload for your website. I will assume you at least have an index.html file.
You can use Ctrl+Click to select multiple files. Then click Open. - Click Start Upload
- Make bucket a website
- Right click on www.example.com in the Buckets list
- Select Properties
- In the lower pane, select the Website tab
- Check Enabled
- Enter index.html for Index Document.
- Click Save
- Click the Endpoint link to verify it is online.
- Copy the endpoint link to your clipboard. Typically something like: http://www.example.com.s3-website-us-east-1.amazonaws.com/
- Create a CName record for www.example.com
- Log into My Account on GoDaddy
- Go to the DNS Manager
- Click Edit Zones beneath example.com
- In the CNAME (Alias) table:
- Click the www row (usually the last row)
- In the second column (Points to) paste the endpoint link, removing the http:// and the trailing slash: www.example.com.s3-website-us-east-1.amazonaws.com
- Click outside the row to finish editing
- Click Save Zone File
- Click OK if prompted
- Periodically try opening www.example.com in a new web browser, or just wait for an email from GoDaddy letting you know your changes were effected.
- You may have to wait for these changes to take effect to move onto the next step.
- Redirect root (example.com)
- Go to the Domain Manager
- Check the box by EXAMPLE.COM
- Click Forward, Forward Domain in the toolbar above the list
- Enter www.example.com in the box after http://
- Click OK
- Periodically try opening example.com in a new web browser, or just wait for an email from GoDaddy letting you know your changes were effected.
- Newly uploaded files need to be made public
- After you update or upload new files to S3:
- Right click on the file and select Make Public
- You can use Ctrl or Shift for multiple select
No comments:
Post a Comment