Forum Discussion
Pramod_Gopala_1
Nimbostratus
Oct 15, 2015Adding Port translation from 8080 to 80 in the existing iRule.
Hi All, Need an help to refine the existing iRule for a port translation. when HTTP_REQUEST {
log local0. "Request HOST is [HTTP::host] URI is [HTTP::uri]"
if {[string tolower [HTTP::host]] ...
Kevin_Stewart
Employee
Oct 15, 2015You can do a string map:
when HTTP_REQUEST {
HTTP::header replace Host [string map {":8080" ""} [HTTP::header Host]]
}
Since you're changing it to 80 (a standard HTTP port), you probably don't need to send it to the server, so I'm just removing :8080 from the Host header.
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