Add mod_cloudflare to DirectAdmin


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Apache Related Information

Add mod_cloudflare to DirectAdminLast Modified: Feb 17, 2017, 3:25 am
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


2003 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST