mod_extract_forwarded

ロードバランサを使うと接続元がロードバランサのIPアドレスになってしまう対策

[code]
# yum –enablerepo=epel install mod_extract_forwarded
[/code]

[code]
# vim /etc/httpd/conf.d/mod_extract_forwarded.conf

LoadModule extract_forwarded_module modules/mod_extract_forwarded.so
MEForder refuse,accept
MEFrefuse all
MEFaccept all
[/code]