Forum Discussion
krelm_52303
Nimbostratus
Nov 20, 2008Changing HTTP Header Host port
Am receiving http requests on a high port (55555) and need to remove this in the header for all requests (so it sends on as port 80).
For example...
Host: www.google.com:...
hoolio
Cirrostratus
Nov 21, 2008Is the app including the port number in redirects? If so, you can try rewriting the redirects using the HTTP profile option. Or you can use an iRule:
when HTTP_RESPONSE {
Check if response is a redirect
if {[HTTP::is_redirect]}{
Replace :55555/ with / in the Location header
HTTP::header replace Location [string map {:55555/ /} [HTTP::header value Location]]
}
}
If the port isn't in the Location header, can you explain where you're seeing it?
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