How to install Cloudflare module on Centos 7 Apache 2.4

Started by Sandeep, February 23, 2017, 01:55:27 PM

Previous topic - Next topic

Sandeep

use this commands for el7

yum install libtool git -y

git clone https://github.com/cloudflare/mod_cloudflare.git && cd mod_cloudflare

/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c

systemctl restart httpd && /usr/local/apache/bin/httpd -M|grep cloudflare

zenben

Perfect.
Thank you!

Don't forget to remove the temporary/cloned directory afterwards:
cd ..
rm -rf mod_cloudflare

hrvojeb


after this command:/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c

i got this error: apxs:Error: /usr/bin/apr-1-config not found!.


monkeyking

Can I use this for "Apache & Varnish Cache & Nginx Reverse Proxy"?