Forum Discussion
tarma_58716
Nimbostratus
Jun 12, 2011split 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.
13 Replies
Sort By
- nitass
Employee
let's say if the original url is 1.1.1.1:80 and the new url is 2.2.2.2:1234. - tarma_58716
Nimbostratus
Hi nitass - nitass
Employee
not 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_58716
Nimbostratus
i've 2VS: one is 1.1.1.1:80 and the other is 1.1.1.1:1234 - nitass
Employee
it seems to be different story. so, is this applicable? - tarma_58716
Nimbostratus
hi nitass thanks for your reply, it worked. - nitass
Employee
welcome and glad to hear that. :-) - tarma_58716
Nimbostratus
Thank u very much for your help nitass. - John_Alam_45640Historic F5 AccountTarma
- nitass
Employee
i 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