download free 30 days trial version buy bucket explorer
Documentation  Download  Purchase  Support  FAQs   Forum   ScreenShots & Demos

How to Set Default Object for a Cloud Front distribution?

You can assign a default root object for your Amazon CloudFront distribution while creating new or updating existing distribution using Bucket Explorer. The default object is file that you can assign for your distribution.  When a user requests to your distributions http://www.mydomain.com without having specific object name in URL then your distribution will return this default object in response as a home page for your web site.

Follow these steps to set default object for a Cloud Front distribution:-

  1. Start the Bucket Explorer and connect with your Amazon S3 Account.
  2. Choose "Distribution" icon from Bucket table toolbar or you can do the same by selecting "Manage Distribution" option from right click menu options on any bucket.
  3. It displays a "List distribution" window having list of existing distributions.
  4. To create new distribution choose "New" button from toolbar of List distribution window or to update existing distribution, select a particular distribution from the list and click on "Update" button from the toolbar.
  5. It opens a window where you can add/update information about cname, comment and other options
  6. You will find a text box labelled "Default Object for distribution" below "Comment" text area. It is enabled while you are creating/updating  "Public/Private" distribution as you can not set default object for STREMING  distribution.
  7. If you want to set default object, then enter the s3 object name in text box for "Default Object for distribution" and click on "Create /Update" button.
  8. Click on refresh button and check Status column. Wait until distribution gets deployed.
  9. Copy Domain Name by right click option on recently deployed distribution.
  10. Now open browser, copy "URL" having only domain name in the address bar. E.g. http://d2itscowvyh1n1.cloudfront.net/
  11. Now your browser will open the default object you specified for this distribution.

Related Topics :