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" ...
nitass
Employee
Jun 12, 2011welcome and glad to hear that. :-)
do u mean something like this?
[root@tulip:Active] config b virtual bar80 list
virtual bar80 {
destination 172.28.17.88:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@tulip:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
if {[HTTP::uri] eq "/"} {
HTTP::redirect "http://new.host.redirect:1234/new_uri"
}
}
}
curl -I http://172.28.17.88/
HTTP/1.0 302 Found
Location: http://new.host.redirect:1234/new_uri
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
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