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.
- tarma_58716
Nimbostratus
virtual bar80 { - tarma_58716
Nimbostratus
the thing i want to do is when the user hit http://172.28.17.8 on port 80, he is redirected to http://172.28.17.8/new_uri on port 1234. - hoolio
Cirrostratus
I think you should be able to just rewrite the URI for requests to / to /new_uri and configure the pool on port 1234. You shouldn't need two virtual servers for this.
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