Website Hosting
Website hosting enables individuals or organisations to store website content on servers to facilitate website access. The website hosting service provider provides server, storage and related management tools to ensure the stable and secure operation of the websites.
Conversant OSS supports static website hosting by allowing users to store website files in buckets and bind them to the customer's domains (e.g., example.com). This provides a scalable, reliable, easy-to-manage solution for delivering static websites directly through OSS.
Steps: (use carousel)
-
Go to Buckets and click Create Bucket. Enter a bucket name (e.g., static-web-example) and click Create Bucket.
-
Go to Credentials and click Create Credential. Select the access level and save the Secret Key.
-
Use the SDK or console to add a Bucket Policy, granting public read access to the bucket.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::Bucket-Name/*"
}
]
} -
Click the newly created bucket (e.g., static-web-example), click Upload File, and click Add Folder to upload your static website resources.
-
Configure Nginx to proxy your customised domain to the OSS bucket service endpoint.
-
Verify whether the website is accessible through the configured customer's domain.