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

Virtual Hosting of Bucket on Amazon S3

On the Internet:

  • Virtual hosting is the provision given by Web server hosting services so that a company (or an individual) doesn't have to purchase and maintain its own Web server.
  • A virtual hosting provider is sometimes called a Web or Internet "space provider."
  • Virtual hosting, is the practice of serving multiple web sites from a single web server.
  • Using Amazon  S3 Virtual Hosting, You can use your own domain name in an Amazon S3 bucket .
  • The formats of URL which are used by Amazon S3 are :
    1. s3.amazonaws.com/bucketname/filename.
    2. bucketname.s3.amazonaws.com/filename.
  • For example :- s3.amazonaws.com/myimage/image1.jpg .
    Here bucket name is " myimage " and file name is " image1.jpg"

Bucket name as Virtual Host :

To host a website in Amazon S3 using this method, you must setup your domain name as a CNAME alias for s3.amazonaws.com .

  • Identify the exact name of your domain.
  • Create a Bucket whose name is same as your domain name.
  • Put your contents into this bucket and assign Read permission to AllUsers.

Furthermore, by naming your Bucket as your registered domain name and by making that name a DNS alias for Amazon  S3 , you can completely customize the URL of your Amazon  S3 resources.

Steps to get “Bucket Name as Virtual Host” with Bucket Explorer are:

  1. Create a Bucket with “ Create Bucket ” option, by giving the bucket name same as the domain name.
  2. Upload the files in this bucket with the “ Upload Object(s) ” option.
  3. Select the object and right click to choose option “ Generate Web URL ”.
  4. Click on “ Use Bucket Name as Virtual Host ” button.
  5. You will get the URLs as “ Bucket name as virtual host ”.

For example, http://mybucketname.com   (Here, Bucket Name is mybucketname.com .)