Control Web Panel

WebPanel => Apache => Topic started by: gailclark80 on July 24, 2018, 01:44:08 AM

Title: mod_cloudflare not work
Post by: gailclark80 on July 24, 2018, 01:44:08 AM
I install the mod_cloudflare by following command. but I found the mod_cloudflare do not work, the $_SERVER['REMOTE_ADDR'] return IP of CloudFlare.

I have checked the /usr/local/apache/conf/httpd.conf,  there is no # on the LoadModule cloudflare_module  modules/mod_cloudflare.so. so the mod_cloudflare should be loaded.

Any suggestion?


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
Title: Re: mod_cloudflare not work
Post by: djingibi on November 09, 2018, 07:19:43 PM
I confirmed, not works.
Title: Re: mod_cloudflare not work
Post by: djingibi on December 14, 2018, 05:10:20 PM
Somebody know how to fix this error:

/usr/local/apache/bin/apxs -a -i -c mod_cloudflare.c
apxs:Error: /usr/bin/apu-1-config not found!.