Forum Discussion
parvez_70211
Nimbostratus
May 28, 2016redirect https request based on hostname
Team,
I'm new to Irules. Need your suggestion on the below request
I have an existing VIP (https://www.abc.com 10.10.10.10:443) which has a pool member (1.1.1.1:443) and ssl is offloaded on...
Vijay_E
Cirrus
May 28, 2016You need to terminate the SSL on the F5 in order to be able to read the host header. Based on your statement, it looks like you are terminating the SSL on the server.
Assuming that you terminate the SSL on the F5, you can use something like this:
when CLIENT_ACCEPTED {
set DEFAULT_POOL [LB::server pool]
}
when HTTP_REQUEST {
if { [HTTP::host] eq "www.abc.com" } {
pool POOL_ABC
} elseif { [HTTP::host] eq "www.xyz.com" } {
pool POOL_XYZ
} else {
pool $DEFAULT_POOL
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects