Romain_Vergnio1
Mar 31, 2006Nimbostratus
How to remove the "Server: BIGIP" header when using "HTTP::redirect"
Hello all,
I use an iRule to redirect HTTP traffic to HTTPS and it works fine, here it is :
----------------------------------------------------------
when HTTP_REQUEST {
Redirects all to HTTPS keeps URI intact
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
----------------------------------------------------------
However I noticed that BigIP adds a "Server: BIG-IP" header in the response, is there a way to remove it ?
I tried all these examples without success :
----------------------------------------------------------
when HTTP_REQUEST {
Redirects all to HTTPS keeps URI intact
HTTP::redirect https://[HTTP::host][HTTP::uri]
HTTP::header remove Server
}
-----------------------------------------------------------
or
-----------------------------------------------------------
when HTTP_REQUEST {
Redirects all to HTTPS keeps URI intact
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
when HTTP_RESPONSE {
HTTP::header remove Server
}
------------------------------------------------------------
or even (I know it's the same but it tried it anyway...) :
iRule n°1
------------------------------------------------------------
when HTTP_REQUEST {
Redirects all to HTTPS keeps URI intact
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
------------------------------------------------------------
iRule n°2
------------------------------------------------------------
when HTTP_RESPONSE {
HTTP::header remove Server
}
------------------------------------------------------------
It seems that "when HTTP_RESPONSE" matches only when receiving the response from the web server, not when the "redirect" function is used.
Anyone has an idea ?
Thanks a lot.
Regards,
Romain Vergniol