Forum Discussion
Domel_163525
Nimbostratus
Sep 04, 2015Rewrite URL
Hello guys,
We have a very basic VS configured on our BIGIP which recognize a URL the HTTP request comes from and redirects the requests to the appropriate Pool members. The VS also does the SSL...
Brad_Parker
Cirrus
Sep 04, 2015I believe what you are looking for is a re-write, not a redirect. Something like:
Condition: http-host host equals a.domainname.com Action:http-uri request replace value: https://newwebservice/Custom/Uri
Updated for pool selection and query string preservation:
ltm policy DV {
controls { forwarding }
requires { http }
rules {
WebService {
actions {
0 {
http-uri
replace
query-string "tcl:[URI::query [HTTP::uri]]"
value https://newwebservice/Custom/Uri
}
1 {
forward
select
pool newwebservice_pool
}
}
conditions {
0 {
http-host
host
values { a.domainname.com }
}
}
ordinal 1
}
}
strategy first-match
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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