Hello mates, I need help on below scenario working on https. /
example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com
Hello mates, I need help on below scenario working on https. /
example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com
Hi,
You can choose LTM policies or irules to have several fqdn on the same Virtual Server. If you are using SSL, you need to provision a valid SSL certificate. A SAN certificate or a wildcard is required.
If you choose using the irule, you can try the following one :
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] {
"hello.abc.com*" {
pool poolname1
}
"hi.abc.com*" {
pool poolname2
}
}
}
You also need to assign a oneconnect profile to avoid Load Balancing decision issues.
Create a string datagroup named hostpools like the following:
www.abc.com := www.abc.com
when HTTP_REQUEST {
set hostpool [class match -value [string tolower [HTTP::host]] equals hostpools]
if { $hostpool ne "" } {
pool $hostpool
} else {
discard
}
}
Create a string datagroup named hostpools like the following:
www.abc.com := www.abc.com
when HTTP_REQUEST {
set hostpool [class match -value [string tolower [HTTP::host]] equals hostpools]
if { $hostpool ne "" } {
pool $hostpool
} else {
discard
}
}
HI Ekaleido,
Not able to create irule based on your suggestion
can you help me for mapping example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com
HI Ekaleido,
Not able to create irule based on your suggestion
can you help me for mapping example :- if url https://hello.abc.com will be go to Pool :- hello.abc.com
if url https://hi.abc.com will go to Pool :- hi.abc.com
where VIP is same with https port for https://hello.abc.com & https://hi.abc.com
Hi Benjamin ,
Thanks it’s working with HTTP, but not with HTTPS.
My iRule does exactly what you’re asking for, it just uses a data group to validate that the URL is valid and should be delivered, then it delivers it to a pool sharing the name of the host.
My iRule does exactly what you’re asking for, it just uses a data group to validate that the URL is valid and should be delivered, then it delivers it to a pool sharing the name of the host.