- 05 Jun 2024
- 1 Minute to read
- Print
- PDF
Public Files - Mapping to a Website With Wasabi Hot Cloud Storage
- Updated on 05 Jun 2024
- 1 Minute to read
- Print
- PDF
How do I map a Wasabi public file(s) to a website?
The first step is to make the file(s) public. By default, files stored with Wasabi are private. However, you can make files public so they can be reached via the appropriate URL, as described for Working With Folders and/or Files.
Below is an example of a file (wasabi-logo1.jpg) that has been made public and stored in a Wasabi bucket (wasabi-support-bucket):
wasabi-support-bucket.s3.wasabisys.com/wasabi-logo1.jpg
s3.wasabisys.com/wasabi-support-bucket/wasabi-logo1.jpg
If the file you want to reach is in a folder in a bucket, you can also specify the full path. In this example, the file wasabi-logo2.jpg is in a folder named wasabi-support-folder):
wasabi-support-bucket.s3.wasabisys.com/wasabi-support-folder/wasabi-logo2.jpg
s3.wasabisys.com/wasabi-support-bucket/wasabi-support-folder/wasabi-logo2.jpg
If you do not make the file public, you will see an error message such as the following when you try to browse to or access the file. (You will also see this error message if the file or path name is wrong.)
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>436EB128E8D03AC2</RequestId>
<HostId>
gziditx5QnCRyJRYgkN3htyTUi9APp4pxKtxoa1i+N9m8cD8oMA+JOyNcX/QufaPQ4GuK0I5gI6f
</HostId>
</Error>
Most Wasabi customers want to use a more friendly URL than s3.wasabisys.com. For example, if you have a website (such as wasabi-support.com), you may want to have this URL redirected to a file at wasabi-support-bucket.s3.wasabisys.com. The method to do this mapping is handled external to Wasabi. For example, in the GoDaddy control panel for a domain of wasabi-support.com, the domain is forwarded to wasabi-support-bucket.s3.wasabisys.com/wasabi-logo1.jpg. (S test of the mapping is shown on the far right.)
If you want to use a DNS CNAME record (for example) to remap logo.wasabi-support.com to wasabi-support.com, you can do so in your DNS control panel. For example: