Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

mod_cloudflare

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
rowebil
Posts: 8
Joined: Wed Dec 03, 2014 2:33 am

mod_cloudflare
  • Quote

Post by rowebil » 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.

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
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.
Top

SCelik

Re: mod_cloudflare
  • Quote

Post by SCelik » Sat Feb 14, 2015 7:36 am

You need module for nginx to resolve real ips from cloudflare, not Apache... Becouse apache is behind nginx.
Top

rowebil
Posts: 8
Joined: Wed Dec 03, 2014 2:33 am

Re: mod_cloudflare
  • Quote

Post by rowebil » Sat Feb 14, 2015 8:34 am

I found it!

Works now!

Finally!

CloudFlare had it posted on their site...
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password