Forum Discussion
Frank_Ziebarth_
Nimbostratus
Jun 16, 2006rewrite an URI with a request parameter
Hallo
we have two webservices in the development, so the the uri is change very often.
Our end-user should connect to these server to an easy URI
http://server/portal/
http:/...
hoolio
Cirrostratus
Jun 19, 2006It looks like HTTP::uri only refers to the original client request. Perhaps one of the gurus can explain this.
I used the following to verify the rewrite though:
when HTTP_REQUEST {
set debug to 1 to enable logging to /var/log/ltm. Set to 0 to disable logging.
set debug 1
if { [HTTP::uri] contains "uri1" } {
HTTP::uri [string map { uri1 uri2 } [HTTP::uri]]
if {$debug}{
log local0. "Rewrote URI from: [HTTP::uri]"
log local0. 'Rewrote URI to: [string map { uri1 uri2 } [HTTP::uri]]"
}
}
}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
