New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Activate mod_cloudflare in Apache

Started by djingibi, October 15, 2016, 09:14:34 PM

Previous topic - Next topic

djingibi

After couple of hours I find a solution.

1) yum install httpd-devel libtool git

2) git clone https://github.com/cloudflare/mod_cloudflare.git

3) cd mod_cloudflare

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

5) service httpd restart

Dan11


robbyq

Can one admin add that for mods? in future in cwp?

cazzone

For me not work, module result installed But the $_SERVER['REMOTE_ADDR'] return IP of CloudFlare

cazzone

olved with CloudFlareRemoteIPTrustedProxy 127.0.0.1 on apache config =)

djingibi

Do not forget to add to apache config file (/usr/local/apache/conf/httpd.conf)

this line:

CloudflareRemoteIPTrustedProxy 123.123.123.123

Replace "123.123.123.123" with your server's IP.

Adak

        Protected multilib versions: apr-1.3.9-5.el6_9.1.i686 != apr-1.6.2-1.x86_64
error: Protected multilib versions: apr-util-1.3.9-3.el6_0.1.i686 != apr-util-1.6.0-1.x86_64

Igor S.

Quoteyum install httpd-devel libtool git

This is a bad way. You can't install httpd via yum. ;)



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services