mod_rpaf ошибки при установке ) error: ‘conn_rec’ has no member named ‘remote_ip’

Как устанавливать указано в http://alligator.mk.ua/node/27

root@srv1 [~/tmp/mod_rpaf/mod_rpaf-0.6]# /usr/local/apache/bin/apxs -i -c -n mod _rpaf-2.0.so mod_rpaf-2.0.c
/usr/local/apache/build/libtool –silent –mode=compile gcc -std=gnu99 -prefer-p ic -m64 -fPIC -DPIC -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/local/ap ache/include -I/usr/local/apache/include -I/usr/local/apache/include -c -o mod_rpaf-2.0.lo mod_rpaf-2.0.c && touch mod_rpaf-2.0.slo
mod_rpaf-2.0.c: In function ‘rpaf_cleanup’:
mod_rpaf-2.0.c:150: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_rpaf-2.0.c:151: error: ‘conn_rec’ has no member named ‘remote_addr’
mod_rpaf-2.0.c:151: warning: implicit declaration of function ‘inet_addr’
mod_rpaf-2.0.c:151: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_rpaf-2.0.c: In function ‘change_remote_ip’:
mod_rpaf-2.0.c:164: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_rpaf-2.0.c:183: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_rpaf-2.0.c:186: error: ‘conn_rec’ has no member named ‘remote_ip’
mod_rpaf-2.0.c:187: error: ‘conn_rec’ has no member named ‘remote_addr’
mod_rpaf-2.0.c:187: error: ‘conn_rec’ has no member named ‘remote_ip’
apxs:Error: Command failed with rc=65536
.

Вот такое выдает, решение:

открыть исходник и заменить remote_ip , remote_addr на client_ip, client_addr соответственно

Установка mod_rpaf Centos

Заходим в SSH и выполняем команды:
rpm -ivh http://download.ispsystem.com/repo/centos/release/6/x86_64/mod_rpaf-0.8.2-1.el6.x86_64.rpm
В папке /etc/httpd/conf.d/ появится файл mod_rpaf.conf
Заменяем 127.0.0.1 (в строке RPAF_ProxyIPs) на ip вашего сервера.

Перезагружаем Apache и Nginx:
service httpd restart
service nginx restart