Control Web Panel

WebPanel => Apache => Topic started by: Wonder on November 19, 2020, 09:18:52 PM

Title: How can install mod_remoteip ?
Post by: Wonder on November 19, 2020, 09:18:52 PM
Hi,
At the first time, I'm new in CWP, I have some VPS with other panel, I view this panel (new for me) and I try in one this CWP, is very good, I think in transfer all others servers to this CWP.

Well, I have a doubt, I search but I don't view how made, I need install mod_remoteip, the site is with cloudflare and I need install this remoteip, I view instructions for install mod_cloudflare, but this mod, is no longer supported or developed by cloudflare.

Its possible install mod_remoteip?

Thanks and regards.
Title: Re: How can install mod_remoteip ?
Post by: cinique on November 19, 2020, 09:49:37 PM
Already loaded on a random check on one of my VPS.
If you can actually be bothered to look around in the menus..
Webserver Settings, Apache Status
Quote
remoteip_module (shared)
Webserver Settings, Webserver Conf Editor, usr/local/apache/conf, httpd.conf
Quote
LoadModule remoteip_module modules/mod_remoteip.so

/end of spoon feeding.
Title: Re: How can install mod_remoteip ?
Post by: Wonder on November 20, 2020, 11:31:19 AM
As simple as that...
Maybe many years used to another panel ... :)

Thanks for your answer and indications, now, to configure it :)
Title: Re: How can install mod_remoteip ?
Post by: Wonder on November 21, 2020, 05:04:46 PM
Adding a little query to this thread ...
I want to configure to only accept, the apache, the traffic for 80 and 443 of the ips addresses only of cloudflare, I have seen this guide / tutorial
https://wiki.centos-webpanel.com/how-to-install-mod_cloudflare
But they are indications for the cloudflare module and not the remoteip.
Would it be the same procedure?

Thanks and regards!
Title: Re: How can install mod_remoteip ?
Post by: narin on July 16, 2021, 10:51:10 AM
mod_cloudflare support ended; mod_remote_ip should now be used. You can activate the remote_ip module on CWP through apace modules.

before:
#LoadModule remoteip_module modules/mod_remoteip.so

after:
LoadModule remoteip_module modules/mod_remoteip.so