产品动态
产品公告
x86\\Release或者x64\\Release目录下的F5XForwardedFor.dll拷贝到某个目录,这里假设为C:\\ISAPIFilters,同时确保对 IIS 进程对该目录有读取权限。F5XForwardedFor.dll的完整路径,单击确定。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 地址首先不是负载均衡提供的公网 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 段。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
文档反馈