Nacho_de_Aguina
Nov 08, 2005Nimbostratus
Redirector Problem
Hello everybody:
I´m trying to forward http requests to one or other Web server depending on the http header.
Example.
http://VirtualServer/magallanes --> Should go to Magallanes HOst
http://VirtualServer/hansolo --> Should go to Hansolo host
SO i have created a VS (stardard mode) with SNAT automode. and two pools one with each server.
I have added this IRule
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/magallanes" } {
pool pool_magallanes
}
elseif { [HTTP::uri] starts_with "/hansolo" } {
pool pool_hansolo
}
}
But it doesn´t works, i get a message in my browser that the page cannot be displayed
Thanks in advance
Nacho