Forum Discussion
zafer
Nimbostratus
Feb 05, 2010uri based load balance
Hello
i'm using this iRule but i have problem.
The problem is when i request the url "www.domain.com/Touch" (it does not work) but if i add "/" at the end of the word it ...
zafer
Nimbostratus
Feb 09, 2010Hi
in this implementation bigip will take webserver role from ibm server, load balance and redirect request to the specific pool
my problem ;
if client request type like this www.xx.com/touch (not works)
www.xx.com/touch/ (it works)
i worked with irule with these type solutions; append and rewrite url (append "/" and rewrite uri set uri $new_uri/) but i got another problems
i use append "/" but irule append "/" in to the all url
regarding rewrite url, "www.xxx.com/touch" rewrited to the "www.xxx.com/touch/" but after the login page bigip removes "/touch/" from url and we got some problems....
i changed your irule with my requirements. is that solve my problems, can be loop problem redirection and load balance to the pool
when HTTP_REQUEST {
set uri_info [string tolower [HTTP::uri]]
switch -glob $uri_info {
"/touch" {
HTTP::redirect "http://[HTTP::host][HTTP::uri]/" -----> add / to the url then
}
"/touch/*" {
pool pool_9081 -------------- load balance the specific pool
}
"/cis" {
HTTP::redirect "http://[HTTP::host][HTTP::uri]/"
}
"/cis/*" {
pool pool_9081
}
"/Dispatch*"
{
pool pool_9085
}
}
}
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