Amazon CloudFront is returning the error message "The request could not be satisfied. Bad Request." How can I resolve this error?

Note: This resolution is for troubleshooting the error when you own the application or website that uses CloudFront to serve content to end users. If you receive this error while trying to view an application or access a website, contact the provider or website owner for assistance.

This error message "The request could not be satisfied. Bad Request." is from the client and the error can occur due to one of the following reasons:

  • The request is initiated over HTTP, but the CloudFront distribution is configured to allow only HTTPS requests.
  • The requested alternate domain name (CNAME) isn't associated with the CloudFront distribution.

To allow HTTP requests, follow these steps:

  1. Open the Amazon CloudFront console.
  2. Choose the distribution that is returning the Bad Request error.
  3. Choose the Behaviors view.
  4. Choose the behavior that matches the request. Then, choose Edit.
  5. For Viewer Protocol Policy, choose either HTTP and HTTPS or Redirect HTTP to HTTPS.
    Note: HTTP and HTTPS allow connections on both HTTP and HTTPS. Redirect HTTP to HTTPS automatically redirects HTTP requests to HTTPS.
  6. Choose Yes, Edit.

To associate an alternate domain name (CNAME) with a distribution, follow these steps:

  1. Open the Amazon CloudFront console.
  2. Choose the distribution that is returning the Bad Request error.
  3. Choose the General view.
  4. Choose Edit.
  5. For Alternate Domain Names (CNAMEs), enter the CNAME that you want to associate with the CloudFront distribution.
  6. Choose Yes, Edit.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-06-08

Updated: 2018-12-06