cshellspecs

Registered
Jan 21, 2013
2
0
1
cPanel Access Level
Root Administrator
I keep getting the CF ips when i have this setup under the premaininclude for apache: (running nginx as a reverse proxy. using nginxcp.com)

Code:
LoadModule rpaf_module modules/mod_rpaf-2.0.so

RPAFenable On
# Enable reverse proxy add forward

RPAFproxy_ips 127.0.0.1 108.61.14.115 108.61.14.116 108.61.14.117 108.61.14.118 108.61.43.50 108.61.43.51 108.61.43.52 108.61.43.53 108.61.43.54

RPAFsethostname On
# let rpaf update vhost settings allowing to have
# the same hostnames as in the “actual” configuration for the
# forwarding apache installation

RPAFheader X-Real-IP
#RPAFheader X-Forwarded-For
# Allows you to change which header we have mod_rpaf looking for
# when trying to find the ip the that is forwarding our requests
 

cshellspecs

Registered
Jan 21, 2013
2
0
1
cPanel Access Level
Root Administrator
I also have the following to nginx as proxy.inc

proxy_connect_timeout 59s;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_buffer_size 64k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_pass_header Set-Cookie;
proxy_redirect off;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding '';
proxy_ignore_headers Cache-Control Expires;
proxy_set_header Referer $http_referer;
proxy_set_header Host $host;
proxy_set_header Cookie $http_cookie;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
also added this under http in nginx.conf

set_real_ip_from 204.93.240.0/24;
set_real_ip_from 204.93.177.0/24;
set_real_ip_from 199.27.128.0/21;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
real_ip_header CF-Connecting-IP;
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
You will probably get a better answer if you ask CloudFlare directly. Their support appears to be available here:

https://support.cloudflare.com/home

CloudFlare is not a cPanel product and not affiliated with cPanel, and the segment of our forum audience that is specifically familiar with CloudFlare is going to be relatively small compared to the segment that is familiar with cPanel in general.