How to install mod_cloudflare (Apache CloudFlare) on Ubuntu 16.04

sudo apt-get install -y git apache2-dev libtool

if [[ -d "$HOME/tmp/git/mod_cloudflare" ]]; then
  cd "$HOME/tmp/git/mod_cloudflare"
  git pull
else
  mkdir -p "$HOME/tmp/git"
  cd "$HOME/tmp/git"
  git clone "https://github.com/cloudflare/mod_cloudflare.git"
  cd "$HOME/tmp/git/mod_cloudflare"
fi

sudo apxs -a -i -c mod_cloudflare.c
sudo ldconfig

sudo service apache2 restart

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.