1. Website Not Loading
- Check that static website hosting is enabled in S3.
- Ensure your HTML file is named
index.html.
- Verify bucket permissions and public access settings.
2. Access Denied Errors
- Ensure the S3 bucket policy allows public read access:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::your-bucket-name/*"
}]
}
Check that "Block Public Access" is turned off if needed.
3. Slow Website Loading
- Use Amazon CloudFront for CDN caching to improve speed globally.
- Compress your HTML, CSS, and images.
4. Domain Issues
- If using a custom domain with Route 53, check DNS configuration and propagation.
- Make sure the bucket name matches the domain for static website hosting.
5. HTTPS/SSL Problems
- S3 website endpoints do not support HTTPS directly. Use CloudFront to enable HTTPS.
- Check your SSL/TLS certificate in AWS Certificate Manager if using a custom domain.
6. GitHub Pages Specific Issues
- Website not showing changes: ensure you pushed changes to the correct branch (
main or gh-pages).
- Custom domain not working: check your
CNAME file and DNS records.