We would make use of another AWS service called CloudFront together with Route 53 and Certificate Manager to host a secure website on S3. ![]() ![]() Keep in mind that although we have this nifty feature, it’s not the recommended method of hosting a website. If we’ve configured everything correctly, the index.html file will be loaded when we navigate to the URL. The default URL for an S3-hosted website takes the form: So if our example bucket linux-is-cool is hosted in the us-east-1 region, the website URL would be: We added two key parameters as well: index-document is important as it tells S3 which page to use as the default landing page for visitors to our site, while error-document tells S3 which page to serve as the default error page. Bucket permissions are handled automatically. The website command instructs S3 to configure the bucket to behave like a website. 6600 Amazon’s Simple Storage Service (S3) has a lot to like. In this section we provide a step-by-step guide for mounting your S3 server on Linux via s3fs. Let’s look at the website command: $ aws s3 website s3://linux-is-cool -index-document index.html -error-document error.html We need to configure our bucket in a specific way to enable this feature. We can use a unique S3 feature that enables us to use an S3 bucket for hosting a website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |