Nginx Restoring visitors IP with mod_remoteip
How to enable mod_remoteip - Restoring visitors IP with mod_remoteip
cpanel mod_remoteip - CloudFlare IPs still shown in netstat after mod_remoteip is enabled



inginx

! Block
Allow block

--------------------------------------------------
1- whm Home Software EasyApache 4
--------------------------------------------------


--------------------------------------------------
2- RemoteIPHeader
--------------------------------------------------

Header IP mod_remoteip.conf

:
nano /etc/apache2/conf.modules.d/370_mod_remoteip.conf




:
:
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 140.90.30.111 140.90.30.222
ns1 ns2 space
--------------------------------------------------
3- Log
--------------------------------------------------

Log combined comon
Home Service Configuration Apache Configuration Global Configuration



h a
And modify both of the LogFormat (combined, and common) by replace the "h" with an

"a".


:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

:
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%a %l %u %t \"%r\" %>s %b" common
restart Apache





CloudFlare Restoring visitors IP with mod_remoteip

WordPress View my IP address