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:
...
hoolio
Cirrostratus
Jun 16, 2008I 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
I think it's been changed in recent versions but didn't find anything about it in the 9.4.x release notes.
Aaron
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