Multiple subdomains on same public IP with same back end server.
hi guys,
I'm trying to host multiple HTTPS subdomains on same public IP with Wild card certificate and same backend servers. for example, i have this subadomains:
x.domain.com
y.domain.com
z.domain.com
all are hosted with same public IP with wild card certificate. all these applications hosted on same back end server with different ports on it.
i tried by creating an irule like below:
when HTTP_REQUEST {
switch -exact -- [string tolower [HTTP::host]] {
"x.domain.com" { pool Pool_x }
"y.domain.com" { pool Pool_y }
"z.domain.com" { pool Pool_z}
default { pool Pool_x }
}
}
and assigned to the virtual server and assigned a client ssl profile with the wild card certificate but it not working as expected. do i miss something here? do i need to use SNI?