Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a custom 404 page for CloudFront Distribution #350

Open
2 tasks
ajschmidt8 opened this issue Dec 18, 2023 · 0 comments
Open
2 tasks

Add a custom 404 page for CloudFront Distribution #350

ajschmidt8 opened this issue Dec 18, 2023 · 0 comments

Comments

@ajschmidt8
Copy link
Member

Currently there are no 404 pages configured for our CloudFront distribution that is used to serve our documentation files from the S3 bucket.

As a result, the error responses look ugly: https://d1664dvumjb44w.cloudfront.net/non-existent-page.

Fortunately, CloudFront has a feature to enable custom error pages:

Therefore we should do the following:

  • Create a self-contained 404.html page and upload it to our documentation S3 bucket.
  • Configure the CloudFront distribution to use the 404.html page for all 404 errors received from S3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant