- Make sure the following is installed:
Red Hat/Fedora:
sudo yum install httpd-devel libtool git
Debian/Ubuntu:
sudo apt-get install apache2-dev libtool git
- Clone the following for the most recent build of mod_cloudflare:
Red Hat/Fedora/Debain/Ubuntu:
git clone https://github.com/cloudflare/mod_cloudflare.git && cd mod_cloudflare
- Use the Apache extension tool to convert the .c file into a module:
Red Hat/Fedora/Debain/Ubuntu:
apxs -a -i -c mod_cloudflare.c
- Restart & verify the module is active:
Red Hat/Fedora:
service httpd restart && httpd -M|grep cloudflare
Debian/Ubuntu:
sudo apachectl restart; apache2ctl -M|grep cloudflare