Forum Discussion
Dave_21103
Nimbostratus
Oct 23, 2015HTTP 301 Redirect iRule with HTTP Response Headers
Hi All,
The following iRule redirects HTTP to HTTPS:
when HTTP_REQUEST { HTTP::respond 301 Location "https://[HTTP::host][HTTP::uri]" }
How do I modify this iRule to not return the "Server: BigIP" response header? I was successfully able to remove the header in other iRules with noserver but I'm having difficulty determining where to add noserver within this iRule.
Thanks!
2 Replies
- Brad_Parker
Cirrus
You need the "noserver" flag. https://devcentral.f5.com/wiki/iRules.HTTP__respond.ashx
when HTTP_REQUEST { HTTP::respond 301 noserver Location "https://[HTTP::host][HTTP::uri]" } - Dave_21103
Nimbostratus
Thanks Brad! That worked.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
