symon38_167412
Aug 20, 2014Nimbostratus
VS selection based on HTTP:host
Hello,
I have a single public IP address and I want to share it between 2 web authentication services (using both https). So far I have configured 2 VS with specific access policies and it works well.
Now my firewall is configured to send all the web traffic to the VS1 and I try to use an irule to switch to VS2 based on the host: Note: my first idea was to use the access policy but I can only test the URI (?) and I'm not sure I can swith to another VS.
when HTTP_REQUEST { log local0. "in HTTP_REQUEST"
switch [string tolower [HTTP::host]] {
"authsrv1.test.mydomain.com" { virtual VIP_authsrv1.test.mydomain.com }
"authsrv2.test.mydomain.com" { virtual VIP_authsrv2.test.mydomain.com }
}
}
It does not work, any idea?