Forum Discussion
Simon_Ecoffey_8
Nimbostratus
Nov 29, 2006Redirect on different tcp port without modifying user's browser
Hello,
I have to loab balance http traffic for 2 reverse proxy. The requirement are to redirect on different TCP port based on the url.
URL https://mysite.com/searchxpl redirect to http...
hoolio
Cirrostratus
Nov 29, 2006You can create a pool containing the server(s) answering for port 8000 (like http_8000_pool) and another for the servers on port 8001, etc.
You could then use a rule to set the pool to http_8000_pool for requests with an HTTP::uri starting with "/searchxpl", etc.
As the client is making requests via HTTPS, you would need to decrypt the SSL using a client SSL profile on the VIP.
A simple example would be:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/searchxpl"}{
URI started with /searchxpl, send to http_8000_pool
pool http_8000_pool
}
elseif {[HTTP::uri] starts_with "/dimpweb"}{
URI started with /dimpweb, send to http_8001_pool
pool http_8001_pool
}
elseif {[HTTP::uri] starts_with "/platcom"}{
URI started with /platcom, send to http_8002_pool
pool http_8002_pool
}
else {
URI didn't match, take some default action
pool default_pool
}
}
Aaron
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