How to Install mod_cloudflare
Connect to your server through SSH and log in as root.
Change directory to /usr/local/src :
cd /usr/local/srcGet the source code for mod_cloudflare:
wget --no-check-certificate https://raw.github.com/cloudflare/mod_cloudflare/master/mod_cloudflare.cUse the Apache Extension Tool to build and install mod_cloudflare:
CloudFlare-Tools/master/mod_cloudflare.c
apxs -a -i -c mod_cloudflare.cRestart the Apache HTTP daemon:
service httpd restartUpdate the Apache configuration data files:
/usr/local/cpanel/bin/apache_conf_distiller --updateThat’s it! From now on, Apache will log the visitors’ IP addresses instead of the CloudFlare IP’s.
No comments:
Post a Comment