cloudflare ips on access.log

27 views
Skip to first unread message

Earl Cannons

unread,
Apr 22, 2016, 4:23:10 AM4/22/16
to OpenLiteSpeed Development
I am behind cloudflare and i have enabled "Use Client IP in header" in litespeed. I am getting FW real ip in php script without any issue

But i get cloudflare IPs for every visitor in my access.log  Anyway to get real IP on access.log?
Message has been deleted

Mike Kasprzak

unread,
Apr 28, 2016, 2:35:42 PM4/28/16
to OpenLiteSpeed Development
Ah I misread the post.

My CloudFlare friendly log string looks like this.

%h [%{PROXY_REMOTE_ADDR}e] %l %u %t \"%r\" [%>s] [sz: %b] %{Referer}i \"%{User-agent}i\"
Reply all
Reply to author
Forward
0 new messages