x86\\Releaseまたはx64\\Releaseディレクトリ下のF5XForwardedFor.dllをあるディレクトリにコピーします。ここでは仮にC:\\ISAPIFiltersとします。同時にIISプロセスのこのディレクトリに対する読み取り権限を確保します。F5XForwardedFor.dllの完全なパスをそれぞれ入力し、OKをクリックします。x86\\Releaseまたはx64\\Releaseディレクトリ下のF5XFFHttpModule.dllとF5XFFHttpModule.iniをあるディレクトリにコピーします。ここでは仮にC:\\x_forwarded_forとし、IISプロセスのこのディレクトリに対する読み取り権限を確保します。





wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gztar zxvf mod_rpaf-0.6.tar.gzcd mod_rpaf-0.6/usr/bin/apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c
/etc/httpd/conf/httpd.confを変更し、末尾に次を追加します。LoadModule rpaf_module modules/mod_rpaf-2.0.soRPAFenable OnRPAFsethostname OnRPAFproxy_ips IPアドレス(このIPアドレスは最初はCLBが提供するパブリックIPではありません。具体的なIPについてはApacheログで確認できます。通常は2つあり、どちらも入力が必要です)RPAFheader X-Forwarded-For
/usr/sbin/apachectl restart
--with-http_realip_moduleを追加する必要があります。yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-develwget http://nginx.org/download/nginx-1.17.0.tar.gztar zxvf nginx-1.17.0.tar.gzcd nginx-1.17.0./configure --prefix=/path/server/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_realip_modulemakemake install
vi /etc/nginx/nginx.conf
xx.xx.xx.xxは実際のIPアドレスに変更する必要があります。このIPアドレスはCLBが提供するパブリックIPではありません。具体的なIPアドレスはNginxログで確認できます。複数のIPアドレスがある場合は、すべて入力が必要です。fastcgi connect_timeout 300;fastcgi send_timeout 300;fastcgi read_timeout 300;fastcgi buffer_size 64k;fastcgi buffers 4 64k;fastcgi busy_buffers_size 128k;fastcgi temp_file_write_size 128k;# 設定フィールドと情報を変更しますset_real_ip_from xx.xx.xx.xx;real_ip_header X-Forwarded-For;real_ip_recursive on;
service nginx restart
cat /path/server/nginx/logs/access.log
フィードバック