How do I restore original visitor IP with Apache 2.4?

 
Cloudflare will no longer update and support mod_cloudflare, starting with versions Debian 9 and Ubuntu 18.04 LTS of the Linux operating system. Customers who are interested in building the mod_cloudflare package can download the codebase from GitHub.

We provide pre-built packages for most current distribution releases at: https://www.cloudflare.com/resources-downloads/#mod_cloudflare.

You can also build and install mod_cloudflare manually:

    1. Make sure the following is installed:
      Red Hat/Fedora:
      sudo yum install httpd-devel libtool git
      Debian/Ubuntu:
      sudo apt-get install apache2-dev libtool git
    2. Clone the following for the most recent build of mod_cloudflare:
      Red Hat/Fedora/Debian/Ubuntu:
      git clone https://github.com/cloudflare/mod_cloudflare.git && cd mod_cloudflare
    3. Use the Apache extension tool to convert the .c file into a module:
      Red Hat/Fedora/Debain/Ubuntu:
      apxs -a -i -c mod_cloudflare.c
    4. Restart and verify the module is active:
      Red Hat/Fedora:
      service httpd restart && httpd -M|grep cloudflare
      Debian/Ubuntu:
      sudo apachectl restart; apache2ctl -M|grep cloudflare
    5. If your web server is behind a load balancer, add the following line to your Apache configuration (replace 123.123.123.123 with your load balancer's IP address):
      CloudflareRemoteIPTrustedProxy 123.123.123.123
       
Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk