githubEdit

How to Setup a Maintenance Page Using CloudFront in DuploCloud

Setup Maintenance Page Create an S3 bucket to host your maintenance page content Create a new CloudFront distribution for the maintenance page Add CORS settings to the CloudFront distribution Disable "Allow Public Access" flag on the S3 bucket policy Add the domain alias to your maintenance CloudFront distribution (e.g., app.yourdomain.com) If "Allow Public Access" flag is grayed out and enabled to disable this flag in Duplo portal, enable "Allow Public Access" flag, this is allow you to disable "Allow Public Access" flag Usage When you need to temporarily redirect traffic to your maintenance page: Ensure your maintenance page CloudFront distribution has the correct domain alias configured Adding an alias to the CloudFront distribution will automatically add a CNAME record in Route 53. Note: If your hosted zone is managed by DuploCloud portal, you cannot directly edit or add CNAME records using AWS console, DuploCloud portal will automatically revert such changes. Setting Up Long-term Domain Redirects For permanent domain redirects (e.g., redirecting from an old domain to a new domain during rebranding), you can: Create an S3 bucket configured with website redirect rules Set up a CloudFront distribution pointing to the S3 bucket Configure the appropriate CORS settings and bucket policies through DuploCloud

Last updated

Was this helpful?