Forum Discussion
MustphaBassim
Jan 27, 2023Cirrus
redirect server
hello dears I am able to access the server but I found new issue which it is that , the server using redirect in order to access it as below https://192.168.1.1:9443 the server would response a...
Paulius
Jan 27, 2023MVP
MustphaBassim First I would like to note that the server really should be corrected to provide the appropriate redirect instead of solving for this on the F5. If you wanted to test this yourself the following iRule might do what you need it to.
when HTTP_REQUEST priority 500 {
set HOST [HTTP::host]
}
when HTTP_RESPONSE priority 500 {
if { ([HTTP::status] starts_with "3") and ([HTTP::header Location] contains ${HOST}) } {
HTTP::header replace Location [string map {http: https:} [HTTP::header value Location]]
}
}
- MustphaBassimJan 28, 2023Cirrus
really the problem with vendor when we asked him to do that they reply us the system is working in that way and accourding to the requriments the system must be pass the F5 LTM
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