Billy_56049
Jul 13, 2011Nimbostratus
Replace or Remove Server tag from HTTP header
Hi!
I'm trying to remove Server tag from HTTP Header. Actually, I'm using redirect for HTTP to HTTPS.
I applied the following irule:
when HTTP_REQUEST {
TCP::respond "HTTP/1.0 302 Found\r\nLocation: http://$site/site/index.seam\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
TCP::close
}
Afterwards, I did this test:
nc -vv xxx.xxx.xxx.xxx 80
Warning: forward host lookup failed for xxx.xxx.xxx.xxx.static.impsat.net.br: Unknown host : Connection timed out
xxx.xxx.xxx.xxx.static.impsat.net.br [xxx.xxx.xxx.xxx] 80 (www) open
HEAD / HTTP/1.0
HTTP/1.0 302 Found
Location: http://my.site.com/index.htm
Server: BigIP
Connection: close
Content-Length: 0
HTTP/1.0 302 Found
Location: http://my.site.com/index.htm
Connection: close
Content-Length: 0
The problem is: I can't remove Server tag, I just add another.
Could you help me?
Many thanks