|
Amazon S3 Virtual hosting of Bucket :
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 :
-
s3.amazonaws.com/bucketname/filename.
-
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.
Now, the steps to get "
Bucket Name as virtual host
" with Bucket Explorer are :
-
Create a bucket with “
Create bucket
” option, by giving the bucket name same as the domain name.
-
Upload the files in this bucket with the “
upload Object(s)
” option.
-
Select the object and right click to choose option “
Generate Web URL
”
-
Click on “
Use Bucket Name as Virtual Host
” button.
-
You will get the urls as “
Bucket name as virtual host
”.
For example,
http://mybucketname.com
[Here bucket name is
mybucketname.com
]
Related Topics:
|
|