Forum Discussion
Bertolazzi_7869
Apr 18, 2012Nimbostratus
Hi,
The redirection works fine with Nitass code!
Please, tell me if this configuration is correct:
http://www.mydomain.com:8080/ABC redirects to http://www.mydomain.com:8080/DEF and points to the pool pool_def
http://www.mydomain.com:8080/HIJ redirects to http://www.mydomain.com:8080/KLM and points to the pool pool_klm
when HTTP_REQUEST {
if { [HTTP::uri] equals "/abc" } {
HTTP::redirect "http://[HTTP::host]/def"{
"/abc*" {pool pool_def}
}
}
if { [HTTP::uri] equals "/hij" } {
HTTP::redirect "http://[HTTP::host]/klm"{
"/hij*" {pool pool_klm}
}
}
}
tks.