Forum Discussion
6 Replies
Sort By
- What_Lies_Bene1CirrostratusThis should do it;
when HTTP_RESPONSE { HTTP::header remove Server }
- Kevin_StewartEmployeeIf you know all of the headers that should be allowed, you can also configure this in the HTTP profile.
- Brian_KenworthyNimbostratusHi Guys, I stumbed across this thread and wanted to ask if there was an easy way to remove the Server: BigIP from the response header. I am actually using an iRule, based on Server Resource Cloaking wiki (https://devcentral.f5.com/wiki/iRules.ServerResourceCloaking.ashx) but BigIP still returns the Server header even though it is not listed in the preserve list.
- What_Lies_Bene1Cirrostratus
I think the issue here is that the header you want to remove isn't a header generated by a real server, it's generated by the BIG-IP. Are you using the HTTP::respond command or something similar in another rule applied to the same VS?
- Brian_KenworthyNimbostratusHi Steve, thanks for the reply. I am not using HTTP::respond in any other rules on the virtual server. I was wondering if I could add it to this rule? I am also thinking about just moving the allowed headers into an HTTP profile to eliminate this rule altogether. If I do that, could I use a simple HTTP::Respond rule to remove that BigIP header?
- What_Lies_Bene1CirrostratusPerhaps try switching the redirect with a HTTP::respond command;
HTTP::respond 301 Location https://[HTTP::host][HTTP::uri]