Add to Favourites Add to Favourites    Print this Article Print this Article

Add mod_cloudflare to DirectAdmin

Relating to this guide, you can install the mod_cloudflare module into apache if you need it.

On a DirectAdmin box, we'll use the httpd-includes.conf file, as it's not modified by CustomBuild once it's set.

  1. Once apache is up and running, download and install the mod_cloudflare module:

    wget https://www.cloudflare.com/static/misc/mod_cloudflare/mod_cloudflare.c
    apxs -i -c mod_cloudflare.c

  2. Next, add the module to the httpd-includes.conf:

    echo "LoadModule cloudflare_module  /usr/lib/apache/mod_cloudflare.so" >> /etc/httpd/conf/extra/httpd-includes.conf

  3. and finally restart apache:

    service httpd restart


Was this answer helpful?

Also Read