Forum Discussion
justin_westover
Nimbostratus
Aug 03, 2014Remove port from HTTP header
We setup a SSRS (SQL Server Report server) behind our F5 and we learned quickly that this didn't behave like any normal IIS based site. The first problem we resolved was the redirect the site issues ...
Kevin_Stewart
Employee
Aug 04, 2014The above will only replace the data in the response payload. Still important, but for a redirect the URI is in the response headers.
when HTTP_REQUEST {
HTTP::header remove Accept-Encoding
STREAM::disable
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] } {
HTTP::header replace Location [string map -nocase {"domain.com:10000" "domain.com"} [HTTP::header Location]]
}
if { [HTTP::header Content-Type] contains "text" } {
STREAM::expression {@domain.com:10000@domain.com@}
STREAM::enable
}
}
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
