Install steps:
cd /usr/local/src
wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
tar -xzf mod_rpaf-0.6.tar.gz
cd mod_rpaf-*
apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
Once installed, we need to load the module into Apache configuration. Since cPanel already has Include Editor for Apache, we will use that functions.
Login to WHM > Service Configuration > Apache Configuration > Include Editor > Pre Main Include > All Versions and paste following text:
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFproxy_ips 127.0.0.1 64.235.229.101 # replace the value with your server IP which are logged same on domlogs of domains
RPAFsethostname On
RPAFheader X-Real-IP
Click Update > Restart Apache and Nginx.
Check and verify the IP from the logs.
Note: In this module we have one limitation is that, we need to add the IPs manually in RPAFproxy_ips.
No comments:
Post a Comment