Why isn't Amazon CloudFront returning my default root object from a subfolder or subdirectory?

The default root object feature for CloudFront supports only the root of the origin that your distribution points to. CloudFront does not return default root objects in subdirectories. For more information, see Specifying a Default Root Object (Web Distributions Only).

To assign a default root object for your CloudFront distribution, be sure to upload the object to the origin that your distribution points to.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-04-02