Forum Discussion
skunk69_85565
Jun 16, 2008Historic F5 Account
http-https redirect adds Server header
Hi all,
I have an issue with an irule which redirects http traffic to https.
The irule works fine, but my customer has concerns about the Server header he sees with liveheaders:
HTTP/1.x 302 Found
Location: https://www.xxxx.xx/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
I tried the http::header insert command to modify this entry, but nothing changes here.
Now, why do we set this Server header? and is there a way to modify it within this redirect?
Thanks for your help here.
- hoolio
Cirrostratus
I can't find the solution which describes this, but it's expected behavior when using HTTP::respond or HTTP::redirect in older LTM versions. You can use a workaround for HTTP traffic (Click hereπTCP::respond "HTTP/1.1 302 Found\r\nLocation: https://[HTTP::host][HTTP::uri]\r\nConnection: close\r\nContent-Length: 0\r\n\r\n" TCP::close
- skunk69_85565Historic F5 AccountThanks Aaron,
- skunk69_85565Historic F5 AccountHi Aaron,
- spark_86682Historic F5 AccountFor HTTP, that workaround will be OK, but not for HTTPS. Starting in 9.4.2, you can add the "noserver" keyword to HTTP::respond, and it will suppress the "Server: BIG-IP" header.
- Colin_Walker_12Historic F5 AccountGood to know...thanks!
- kolejarz
Nimbostratus
hi all,
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