> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrate CDN resource with Drupal

Before you take any steps please back up your files and database. The plugin works only with default CMS pattern. If you manually changed CMS patterns, the plugin might not help you.

Login to your Drupal site.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/1.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=3d7ced9e7f75c8ee006467729b046c8f" alt="Login to your Drupal site" width="242" height="466" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/1.png" />
</Frame>

Choose Modules in your Administration bar on top of the page.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/2.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=d8e3f01d130209271275004c5cfb5fb5" alt="Modules in your Administration bar" width="595" height="43" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/2.png" />
</Frame>

As soon as you have downloaded CDN Module from Drupal.org, choose **Install new module** and download `.zip`.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/3.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=a0db2543aaeeb1fc80c4c444d28416e2" alt=" CDN Module" width="419" height="306" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/3.png" />
</Frame>

Upload CDN Module from your browser and install it.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/4.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=66a06c430b52ca3d30c220acad3b0462" alt="Upload CDN Module" width="499" height="426" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/4.png" />
</Frame>

If the installation was successful, you will see the following.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/5.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=42c816810ac292bc1c74c8d79f821521" alt="successful" width="509" height="223" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/5.png" />
</Frame>

As soon as the CDN Module is successfully installed, get back to the modules list and scroll down to CDN. Choose **Enable** and Save configuration.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/6.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=dab594c4492f9124bca22230469d61e2" alt="get back to the modules list" width="369" height="306" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/6.png" />
</Frame>

Select Configure in the CDN Module.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/7.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=3a354fe59ff36eb5a7934461fc1aa40a" alt="Select Configure in the CDN Module" width="392" height="145" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/7.png" />
</Frame>

Change the CDN module status to Enabled and save the setting by hitting the Save Configuration button.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/8.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=c32a679616384c6f7231da704448a546" alt="Change the CDN module status" width="383" height="340" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/8.png" />
</Frame>

Choose the "Details" tab on the right of the screen.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/9.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=cbb0f4b1d1010035f8e1877bfa9cb3cc" alt="Details" width="313" height="68" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/9.png" />
</Frame>

For the Mode choose Origin Pull and enter CNAME specified in the [Gcore Customer Portal](https://portal.gcore.com/cdn/resources/list).

Ensure that your [CNAME record has been configured](/cdn/cdn-resource-options/general/create-and-set-a-custom-domain-for-the-content-delivery-via-cdn) in a proper way before using it for integration.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/10.PNG?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=27eda4a9a5aaac7e0fbb58b4b5709ffd" alt="Mode choose " width="907" height="350" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/10.PNG" />
</Frame>

Scroll down and choose Far Future expiration, then click Save Configuration.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/11.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=1c0b504a4138008d89b2f87b4cc5f22b" alt=" Far Future expiration" width="467" height="397" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/11.png" />
</Frame>

These steps are needed if you are going to deliver your CDN content via HTTPS. Choose the Other tab on the right of the CDN Module configuration screen.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/12.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=86eb6cfefe340cb84765d9f79ce27a0b" alt="Other " width="285" height="64" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/12.png" />
</Frame>

Enable HTTPS to support SSL.

<Frame>
  <img src="https://mintcdn.com/gcore/lJxwP5ZCdc6UHqN3/images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/13.png?fit=max&auto=format&n=lJxwP5ZCdc6UHqN3&q=85&s=3e3c636a07dcf7873a7cee345e891d2a" alt="Enable HTTPS to support SSL." width="403" height="369" data-path="images/docs/cdn/getting-started/integrate-cdn-with-cms/integrate-cdn-resource-with-drupal/13.png" />
</Frame>

Integration has been completed! We highly recommend you to check the HTML code of your web page to ensure that URLs have been rewritten properly from your original ones to CNAME from the Gcore Customer Portal.

To do that press **F12** or open Developers Tools in your browser, choose the Network tab and refresh the page. All static files should have your CNAME in URLs.
