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
LoadModule rpaf_module modules/mod_rpaf-2.0.so RPAFenable On RPAFsethostname OnRPAFproxy_ips IP地址 //IP 地址为通道的转发IP RPAFheader X-Forwarded-For
/usr/sbin/apachectl restart
wget http://nginx.org/download/nginx-1.14.0.tar.gztar zxvf nginx-1.14.0.tar.gzcd nginx-1.14.0./configure --user=www --group=www --with-http_stub_status_module --without-http-cache --with-http_ssl_module --with-http_realip_modulemakemake install
vi /etc/nginx/nginx.conf修改如下红色部分: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 IP地址; //IP 地址为通道转发IPreal_ip_header X-Forwarded-For;
service nginx restart
本页内容是否解决了您的问题?