mod_cloudflare
Posted: Sat Feb 14, 2015 7:25 am
How do I get an Apache module to work?
I am trying to get mod_cloudflare to show the original IP address in the Apache logs.
It does not seem to work with VestaCP.
I am using instructions from the CloudFlare site.
I use this code to install it. Then I run the phpinfo test page, and I can see that the module is loaded.
This is on CentOS 6.6
However, it doesn't restore the original IP. I tried it with a LAMP install at DigitalOcean, and it worked beautifully.
I asked CloudFlare, and David, a web engineer at Cloudflare, is also trying to figure it out. He said he might contact CloudFlare individually. I'm not sure if he has, but he has not updated me on the issue.
I told him I will try to figure it out and test, but I just can't seem to figure it out.
Does anyone know how? I find that it has something to do with Nginx being a proxy. But I'm not sure at all.
I am trying to get mod_cloudflare to show the original IP address in the Apache logs.
It does not seem to work with VestaCP.
I am using instructions from the CloudFlare site.
I use this code to install it. Then I run the phpinfo test page, and I can see that the module is loaded.
Code: Select all
yum install libtool httpd-devel
wget https://www.cloudflare.com/static/misc/mod_cloudflare/mod_cloudflare.c
apxs -a -i -c mod_cloudflare.c
However, it doesn't restore the original IP. I tried it with a LAMP install at DigitalOcean, and it worked beautifully.
I asked CloudFlare, and David, a web engineer at Cloudflare, is also trying to figure it out. He said he might contact CloudFlare individually. I'm not sure if he has, but he has not updated me on the issue.
I told him I will try to figure it out and test, but I just can't seem to figure it out.
Does anyone know how? I find that it has something to do with Nginx being a proxy. But I'm not sure at all.