# cd /usr/local/src
# wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
# tar xzvf mod_rpaf-0.6.tar.gz
# cd mod_rpaf-0.6
# apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
# vi /etc/httpd/conf/httpd.conf
- Find the “LoadModule” list (near the top)
- Add the following lines at the bottom of the “LoadModule” list:LoadModule rpaf_module modules/mod_rpaf-2.0.so# mod_rpaf ConfigurationRPAFenable OnRPAFsethostname OnRPAFproxy_ips 127.0.0.1 10.0.0.1RPAFheader X-Forwarded-ForWhere “127.0.0.1 10.0.0.1″ is, add your proxy server IP address(es). This will ensure that mod_rpaf checks for the X-Forwarded-For header from these hosts only.4. FinishRestart Apache for the changes to take effect#service httpd restart5. Troubleshooting
The following dependencies may need to be installed before installing mod_rpaf:
httpd-devel, gcc
They can be installed using the following commands:
引用:
#yum install httpd-devel gcc
這樣就可以囉~~
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |