본문 바로가기

쓰기

apache mod_rpaf 설치

haru 2017.11.23 17:58 조회 수 : 25

 

[환경]

Centos 6.5 64bit

apache 2.4

 

[설치]

 

wget http://www.stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz

 

tar xvfz 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

 

소스설치시ex) /usr/local/apache/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c

 

vi /usr/local/apache/conf/httpd.conf

 

LoadModule  rpaf_module modules/mod_rpaf-2.0.so

 

<IfModule rpaf_module>

  RPAFenable On

  RPAFproxy_ips xxx.xxx.xxx.xxx  

  RPAFsethostname On

  RPAFheader X-Forwarded-For

</IfModule>

 

apache 재시작