Debugging Cloudfront with multiple origins (S3 + API Gateway) : … Copy Regex.
Regex The CloudFront Route 53 zone ID that can be used to route an Alias Resource Record Set to. While the cache behavior does not change the request path, it still determines which requests it can handle. Origins and Cache Behaviors.
How to configure Cloudfront's 'Cache Behavior->Path Pattern' to … Routing in CloudFront is based on the path of the request. Original answer. Yes, the patterns have to exist at the origin. CloudFront, natively, can prepend to the path for a given origin, but it does not currently have the capability of removing elements of the path (without Lambda@Edge, as noted above). Cache behavior configuration Open your web distribution from the CloudFront console.
Path Regular Some examples show wildcard is possible, but it seems they don't declare whether regex expressions or unix shell metacharacters can be used.