# Azure CDN Configuration Guide

### Implementation steps <a href="#steps" id="steps"></a>

#### Step 1: <a href="#step-1" id="step-1"></a>

Go to your website Front Door configuration

***

#### Step 2: <a href="#step-2" id="step-2"></a>

Choose origin groups → Add origin

***

#### Step 3:  <a href="#step-3" id="step-3"></a>

Set any name, uncheck Enable health probes

***

#### Step 4:  <a href="#step-4" id="step-4"></a>

Select Add an origin

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2Fnr5kaC3ZPNSOQ6cRMC4p%2Fimage.png?alt=media&#x26;token=7bc10924-c5de-4928-bba5-eeebdef2c56d" alt=""><figcaption></figcaption></figure>

&#x20;

***

#### Step 5:  <a href="#step-5" id="step-5"></a>

Fill in origin details:

1. Set any name
2. Set Origin type = Custom
3. Set Hostname as following: hash of the JENTIS container as subdomain + . + website domain, e.g. [hash.yourwebsitedomain.com](http://hash.yourwebsitedomain.com/)
4. Press Add<br>

   <figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FXq86r4BwiEdD9wnNUlYZ%2Fimage.png?alt=media&#x26;token=c040302a-448b-4412-a7e3-664d419a92e7" alt=""><figcaption></figcaption></figure>

***

#### Step 6:  <a href="#step-6" id="step-6"></a>

Go to Rule Sets → Add Routing Rule:

1. Set name
2. Set Condition: if Request URL Value Contains /hash (hash of the JENTIS container)
3. Set Action: Overwrite origin group = Yes, Origin group you created in the previous step, Forwarding protocol = Match the incoming request, Caching = Disabled
4. Save

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2F4H85VfOlzvq3EOZvfJCz%2Fimage.png?alt=media&#x26;token=a3285732-715b-4dbc-9ef4-7ef3cb31fc31" alt=""><figcaption></figcaption></figure>

***

#### Step 7:  <a href="#step-7" id="step-7"></a>

Go to Front Door configuration panel and choose edit the website route

<figure><img src="https://2315305008-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy15ncufYr341K5U8q6Of%2Fuploads%2FtiO50GLnrPXSpqr2LFUZ%2Fimage.png?alt=media&#x26;token=76f51b6c-975c-477e-b840-23acbac629a6" alt=""><figcaption></figcaption></figure>

***

#### Step 8:  <a href="#step-8" id="step-8"></a>

Add the rule from the previous step and press Update

{% hint style="danger" %}
After enabling Cookie lifetime extender, the DCP will give a proxy code that is expected to be setup on `https://domain.*/hash` however, if it is set up on `https://www.domain.*/hash` it will cause a CORS Error on the Cookie Lifetime Extender Requests.

For more details on WWW configuration follow this [guide](https://docs.jentis.com/key-features/cookie-lifetime-extender/configure-your-tracking#www-configuration-guide-optional).
{% endhint %}
