|
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:-
|
|
-
Start the Bucket Explorer and connect with your Amazon S3 Account.
-
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.
-
It displays a "List distribution" window having list of existing distributions.
-
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.
-
It opens a window where you can add/update information about cname, comment and other options
-
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.
-
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.
-
Click on refresh button and check Status column. Wait until distribution gets deployed.
-
Copy Domain Name by right click option on recently deployed distribution.
-
Now open browser, copy "URL" having only domain name in the address bar. E.g. http://d2itscowvyh1n1.cloudfront.net/
-
Now your browser will open the default object you specified for this distribution.
|
Related Topics
:
|
|