Error installing mod_cloudflare
I need view original visitor IP when the user uses Cloudflare, i try install mod_cloudflare, but i had problems.
In terminal i'm use this:
But when retart my HTTPD retorn this error
I remove /etc/apache2/conf.modules.d/cloudflare.conf and i my HTTPD restart normal
bash <(curl -s https://raw.githubusercontent.com/cloudflare/mod_cloudflare/master/EasyApache/installer.sh)But when retart my HTTPD retorn this error
[root@server ~]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 27 of /etc/apache2/conf/httpd.conf: Syntax error on line 1 of /etc/apache2/conf.modules.d/cloudflare.conf: Cannot load modules/mod_cloudflare.so into server: /etc/apache2/modules/mod_cloudflare.so: undefined symbol: ap_log_rerror
I remove /etc/apache2/conf.modules.d/cloudflare.conf and i my HTTPD restart normal
-
Please try. yum -y install ea-apache24-mod_remoteip
Apache configuration > include editor > Pre Main Include Add and save the codes below.RemoteIPHeader X-Forwarded-For LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent LogFormat "%a %l %u %t \"%r\" %>s %b" common LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog logs/access_log combined
mod_remoteip and mod_cloudflare do the same thing.0 -
Please try.
yum -y install ea-apache24-mod_remoteip
Apache configuration > include editor > Pre Main Include Add and save the codes below.RemoteIPHeader X-Forwarded-For LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent LogFormat "%a %l %u %t \"%r\" %>s %b" common LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog logs/access_log combined
mod_remoteip and mod_cloudflare do the same thing.
I try this and didn't work.0 -
Hi, I'd reach out to CloudFlare to see if they can assist you with getting this module installed. It should work, but perhaps they had an issue in their installation script. 0 -
Is solved! I use this article: How do I restore original visitor IP with Apache 2.4? But i need change httpd-devel to ea-apache24-devel 0
Please sign in to leave a comment.
Comments
4 comments