Forum Discussion
Benjamin_9120
Nimbostratus
May 30, 2010about regular expressions
Customer will access follow uri:
http://www.test.com/server1
http://www.test.com/server2
......
http://www.test.com/serverN
I want redirect to relate resource base on ser...
The_Bhattman
Nimbostratus
May 30, 2010Hi Benjamin,
When you match up the URI "ServerN" where exactly do you want to redirect to? Do you want to direct it to a pool based on the uri then you could do the following
when HTTP_REQUEST {
set poolname [HTTP::uri]
if { ([HTTP::host] eq "www.test.com") and ([HTTP::uri starts_with "/server" } {
pool pool_$poolname
}
}
NOTE: This is untested code
I hope this helps
Bhattman
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
