Amazon CloudFront (AWS) Configuration Guide

Introduction

To forward requests to JENTIS via CloudFront, we need to add a new custom origin to the CloudFront distribution and define a behavior for the origin.


Prerequesits

  • Admin access to the AWS Management Console.


Step 1: Create Origin

  1. Sign in to the AWS Management Console and open the CloudFront console at https://console.aws.amazon.com/cloudfront/v4/homearrow-up-right.

  2. Navigate to Distributions

  3. Open the distribution for your website

  4. Navigate to Origins

  5. Click Create origin

  6. Specify the following:

    1. Origin domain: hash of the JENTIS container as subdomain + . + website domain, e.g. hash.yourwebsitedomain.comarrow-up-right

    2. Protocol: HTTPS

    3. Port: 443

    4. MinimumSSL protocol: TLSv1.2

    5. Enable Origin Shield: No

  7. Press Create Origin


Step 2: Define Behavior

  1. In your website distribution go to Behaviors;

  2. Click Create behavior

  3. Specify the following:

    1. Path pattern: '/' + hash of the tracking container, e.g /hash

    2. Origin and origin groups: hash.yourwebsitedomain.comarrow-up-right (origin from the previous step)

    3. Compress objects automatically: No

    4. Viewer protocol policy: HTTPS Only

    5. Allowed HTTP methods: GET, HEAD, OPTIONS, PUT, POST, PATCH, DELETE

    6. Cache HTTP methods: disabled

    7. Allow gRPC requests over HTTP/2: disabled

    8. Restrict viewer access: No

    9. Cache key and origin requests → Cache policy: CachingDisabled

    10. Cache key and origin requests → Origin request policy: None

    11. Cache key and origin requests → Response headers policy: None

  4. Press Create Behavior


Conclusion

You have now created your new custom behaviour, and your request will be forwarded from now on.

triangle-exclamation

If you have any questions or suggestions, contact us through our Helpdeskarrow-up-right.

Last updated

Was this helpful?