X-Forwarded-For or remote_addr field to directly get the client IP address. For the access logs of layer-7 CLB, see Configuring Access Logs.X-Forwarded-For to get the real client IP address.F5XForwardedFor.dll in the x86\\Release or x64\\Release directory based on your server operating system version to a certain directory (such as C:\\ISAPIFilters in this document), and make sure that the IIS process has the read permission on this directory.F5XForwardedFor.dll for Executable and then click OK.F5XFFHttpModule.dll and F5XFFHttpModule.ini in the x86\\Release or x64\\Release directory based on your server operating system version to a certain directory (such as C:\\x_forwarded_for in this document), and make sure that the IIS process has the read permission on this directory.





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 by adding the following to the end of the file:LoadModule rpaf_module modules/mod_rpaf-2.0.soRPAFenable OnRPAFsethostname OnRPAFproxy_ips IP address (The IP address is not the public IP address provided by CLB. For the specific IP address, query the Apache logs. Generally, there are two IP addresses and you need to enter both of them.)RPAFheader X-Forwarded-For
/usr/sbin/apachectl restart
http_realip_module to get the real client IP address when Nginx is used as the server. However, this module is not installed in Nginx by default, and you need to recompile Nginx to add --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
nginx.conf file.vi /etc/nginx/nginx.conf
xx.xx.xx.xx with the IP or IP range of the upper-layer proxy server. 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;# Modify the configuration fields and information as followsset_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
Feedback