Configure a static website using S3 Bucket
Prerequisite
Instructions
1. Upload file สำหรับทำ static website
s3cmd put ${OBJECT} s3://${BUCKET_ENDPOINT}/${PATH_TO_FILE} --acl-publics3cmd put index.html s3://test-static-website/ --acl-publics3cmd ls s3://${BUCKET_ENDPOINT}/${PATH_TO_FILE}s3cmd ls s3://test-static-website/2. Configure static website




การใช้งานด้วย Domain อื่นๆ ด้วยวิธีการ MAP CNAME


Troubleshooting
Error 404 Not found
สาเหตุ: Index Document หา index.html file หรือ Dependencies file ไม่เจอ

Error 403 Access denied
สาเหตุ: Permission public read หายไป ทำให้ไม่สามารถอ่าน file ได้


Error พบ file css, js แล้ว แต่ Content type เป็น text/plain
สาเหตุ: ไม่ได้มีการให้ mime detect content type ผ่าน s3cmd CLI

PreviousMove Objects Lifecycle ScriptNextปกป้องข้อมูลให้ปลอดภัยจาก Ransomware ด้วย Immutable Backups บน Nipa Cloud Object Storage
Last updated