伪装WEB服务器(apache/lighttpd/nginx)
通过命令:
?View Code BASH# curl -s -I www.codigg.com | fgrep ‘Server’
Server: Apache/2.0.52 (Red Hat)
通过命令:
?View Code BASH# curl -s -I www.codigg.com | fgrep ‘Server’
Server: Apache/2.0.52 (Red Hat)
本文代码在SuSE/Ubuntu下测试通过(包括32位和64位),如果看完本文解决不了你的问题,请用google搜素关键字:AddAcceptForwarder
用lighttpd做proxy server,来对多个apache做负载均衡已经是很常见的做法了。但是默认情况下,apache日志中获不到访问者的真实IP,对于分析日志带来一定困难,最简单的方法是使用mod_extract_forwarded2。
安装编译脚本如下(apxs2需要先安装apache2-devel):
?View Code BASHmkdir mod_extract_forwarded2