Forum Discussion
Bob_10976
Nimbostratus
Jul 12, 2010iRule to use specific server based on URL/URI request
Hello all..
When the request for https://hostdomain.com/project is requested I need to go direct and only one of the nodes in the assoicated pool. I can't have any other request go to this ...
Bob_10976
Nimbostratus
Jul 13, 2010It appears I'm doing something wrong, below is the code I'm using and I found two problems with it. Fist if I leave in the "default" section of the code than none of my applications/websites related to this site work. This is probably because all the vitural directories that hang off my web site, exist in a format such as: https://secure.domain.com/carpool, or /Bob or /tools, etc.. Since there is no default I took that section out. However with or with out that section the redirection is not happening. No errors messages jump out at me as being issue, not sure how to troubleshoot irules... Any suggestions?
when HTTP_REQUEST {
Check the requested path with wildcard matching
switch -glob [HTTP::path] {
"/project*" {
/project URI
virtual vs_new_Secure_Server_https
}
default {
non-/project URI
virtual vs_Old_Secure_Server_https
}
}
}
Thanks,
Bob
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