When using Cloudflare, the IP and hostname in the access log will be the Cloudflare IP.
I would like to use the pro plan if I can configure the origin IP to appear in the raw logs.
How do I go about setting this up?
We are not programmers and do not know the hard way to operate on the command line.
If you know how to do this, we would appreciate it if you could give us some hints.
June 20, 2022, 1:12am
Thank you for your comment.
Is this to be done within the origin server?
I have done a lot of research and understand.
I understand that I can configure Apache on the command line by using the “ssh” protocol to communicate with the rental server.
I will give it a try.
it’s actually really easy to set up with Apache
once you have the remoteip mod enabled this is all you really need:
I didn’t have to touch my logging configuration at all… if you’re already logging IPs to your logs, you should just start seeing real IPs instead of Cloudflare IPs once the mod is turned on & the config is added & Apache is restarted.
Just put it somewhere in your global Apache configuration so that it covers all your vhosts. It’s fine if some of your vhosts aren’t proxied through Cloudflare, it’ll just have no effect on them.
Thank you for your comment, user4358.
I think it will be rather easy to do.
But ssh itself is my first challenge, so I will try to do it by trial and error.
I will try to remember “mod_remoteip”.
After much trial and error, I found that mod_remoteip was not available on the server I am subscribed to in the first place.
We apologize for the advice we received.
July 9, 2022, 12:37am
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.