Forum Discussion
tarma_58716
Jun 12, 2011Nimbostratus
split port url in the https class redirection
Hi i've a httpclass wich redirect the client to a new URL:
profile httpclass localhost_redirect {
defaults from httpclass
pool none
redirect "http://172.x.x.x:"2131"
}
The Vs has not a pool it just redirect the client to the new URL.
I would like to split the port number in to the browser.
Has anyone know how to write an irule allowing this.
I've tried to use this iRule but it doesn't work, the port still be displayed buy the Browser:
when HTTP_REQUEST {
if { [HTTP::header value Location] contains ":" } {
HTTP::header replace Location [lindex [split [HTTP::header value Location] ":"] 0]/
}
}
Thanks in advance for your help.
- nitassEmployeelet's say if the original url is 1.1.1.1:80 and the new url is 2.2.2.2:1234.
- tarma_58716NimbostratusHi nitass
- nitassEmployeenot sure if it works if we set another virtual as 2.2.2.2:80 and send traffic to 2.2.2.2:1234. anyway, if i don't misunderstand, bigip has to directly connect to 2.2.2.2 subnet.
- tarma_58716Nimbostratusi've 2VS: one is 1.1.1.1:80 and the other is 1.1.1.1:1234
- nitassEmployeeit seems to be different story. so, is this applicable?
- tarma_58716Nimbostratushi nitass thanks for your reply, it worked.
- nitassEmployeewelcome and glad to hear that. :-)
- tarma_58716NimbostratusThank u very much for your help nitass.
- John_Alam_45640Historic F5 AccountTarma
- nitassEmployeei agree with john. i don't think it's possible to hide port number in http redirection.
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