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

# Drupal

> Integrate bunny.net CDN with your Drupal website for faster content delivery and improved performance.

Drupal supports CDN delivery through the [CDN module](https://www.drupal.org/project/cdn), which rewrites your asset URLs to serve them through Bunny CDN. This guide walks you through installing and configuring it.

<Steps>
  <Step title="Create a Pull Zone">
    Log in to your [bunny.net dashboard](https://dash.bunny.net) and create a new Pull Zone with your Drupal site as the origin URL. For details, see [How to create your first Pull Zone](/cdn/quickstart).

    Match the protocol of your site exactly. If your Drupal site runs on HTTPS, enable HTTPS on the Pull Zone; if it runs on HTTP only, leave HTTPS disabled. A mismatch will cause errors.

    <Note>
      You can set a long Cache-Control time for Drupal. The CDN module serves updated elements from new URLs, so changes appear immediately without waiting for the cache to expire.
    </Note>
  </Step>

  <Step title="Install the CDN module">
    Download the latest `.tar.gz` release of the [Drupal CDN module](https://www.drupal.org/project/cdn) and copy its download URL. You'll need SSH or FTP access to your site.

    In the Drupal admin, select **Manage**, then **Extend**, then **Install new module**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2/RilmGx6yE6wbeAYi/images/cdn/integrations/cms/drupal-extend-install-module.png?fit=max&auto=format&n=RilmGx6yE6wbeAYi&q=85&s=e976b917c2b1b7328786aa9290e0276e" alt="Drupal Extend page with the Install new module button" width="1157" height="540" data-path="images/cdn/integrations/cms/drupal-extend-install-module.png" />
    </Frame>

    Paste the `.tar.gz` URL, click **Install**, and provide your SSH/FTP credentials when prompted. When the installer finishes, click **Enable newly added modules**.

    Scroll to the **Web Services** section, select the **CDN** and **CDN UI** modules, then click **Install**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2/RilmGx6yE6wbeAYi/images/cdn/integrations/cms/drupal-enable-cdn-modules.png?fit=max&auto=format&n=RilmGx6yE6wbeAYi&q=85&s=6e5746f4b7ae1316ab0e14c9566b94f2" alt="Enabling the CDN and CDN UI modules" width="961" height="424" data-path="images/cdn/integrations/cms/drupal-enable-cdn-modules.png" />
    </Frame>
  </Step>

  <Step title="Configure the CDN module">
    Go to **Manage → Configuration**, scroll to the bottom, and click **CDN Integration**. On the **Status** tab, make sure **Serve files from a CDN** is enabled.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2/RilmGx6yE6wbeAYi/images/cdn/integrations/cms/drupal-cdn-status.png?fit=max&auto=format&n=RilmGx6yE6wbeAYi&q=85&s=62b3ca0cd142c4d90b34df7ce694c06c" alt="Enabling Serve files from a CDN" width="1368" height="454" data-path="images/cdn/integrations/cms/drupal-cdn-status.png" />
    </Frame>

    Open the **Mapping** tab, select **Simple** mapping, choose **Serve all files**, and enter your Pull Zone hostname in the field on the right. Click **Save configuration**.

    <Frame>
      <img src="https://mintcdn.com/bunnynet-cb9733c2/RilmGx6yE6wbeAYi/images/cdn/integrations/cms/drupal-cdn-mapping.png?fit=max&auto=format&n=RilmGx6yE6wbeAYi&q=85&s=3d58f6fdbe993bedd58590996ec851e6" alt="Configuring the CDN mapping" width="888" height="461" data-path="images/cdn/integrations/cms/drupal-cdn-mapping.png" />
    </Frame>
  </Step>
</Steps>

Your Drupal site now serves static assets through Bunny CDN.
