Build a static website with FPT Object Storage
Introduction
Besides the pure data storage function, FPT Object Storage also supports configuring a bucket as a web hosting. With characteristics such as high stability, very low cost, and simple configuration, you can use this web hosting for many different purposes:
- Host static websites such as Landing pages, Resume websites, Portfolio websites, Brochure websites, and other read-only sites.
- Host a website to display an error notification when the main website is interrupted.
Prerequisites
You are using the FPT Object Storage service and have a public bucket.
Overview
A static website is a website that does not have server-side interactive features. It usually only consists of HTML, CSS, JavaScript files and resources such as images and videos. By using FPT Object Storage, you can store these files in your bucket and configure it to function as a website. After successful configuration, FPT will provide you with a domain. You can use this domain directly or purchase another domain and point a CNAME to it to use your own domain.
Solution
Below are the basic steps to build a static website with FPT Object Storage: Prepare website pages: Create HTML, CSS, JavaScript files and all other resources required for your website. Create a public bucket: Make sure the bucket you want to use for the website is public. This allows everyone to access the content in the bucket. Upload files to the bucket: Use the FPT Portal interface or a client to upload the files you have prepared to your bucket. Configure web hosting: In the bucket settings, you will see a web hosting configuration section. You need to set options such as the index file name (usually index.html) and the 404 file name (page not found). Detailed instructions are here. Access the website: Once configured, you can access your static website using the link provided in the bucket's web hosting settings.
Conclusion
Using FPT Object Storage to build a static website is a simple and cost-effective solution. Configuring a bucket to function as web hosting lets you easily share content online without having to manage your own server.