Forum Discussion
Chuck_13207
Nimbostratus
Aug 10, 2012Problem figuring out how to rewite what is sent to pool
I have a link that I want to be minus a directory when it is sent to the pool.
The issue is this:
The user clicks on a link like this:
https://fqd n/tr1/W.aspx?L=Nb8PMkM ...
Brian_69413
Nimbostratus
Aug 13, 2012OK, how about this:
when HTTP_REQUEST {
set pathvar [HTTP::path]
if { [HTTP::path] contains "/tr1" }{
string map {"/tr1" ""} $pathvar
HTTP::path $pathvar
pool pool_tr1
}
elseif { [HTTP::path] contains "/tr2" }{
string map {"/tr2" ""} $pathvar
HTTP::path $pathvar
pool pool_tr2
}
}
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