Forum Discussion
cymru81
Altocumulus
Aug 12, 2019irule pool member help
we have a VIP that currently uses this irule: ## # Notify the backend servers that this traffic was SSL offloaded by the F5. ## when HTTP_REQUEST { HTTP::header insert "X-Forwarded-Proto" ...
jonwest1_uk
Cirrus
Aug 12, 2019Hi Cymru81,
You can create a pool for each site then select which to direct traffic to based on the hostname. If the site is on both IIS servers include them both as members, if not just have 1 as a member.
ltm rule poolselect {
when HTTP_REQUEST {
HTTP::header insert "X-Forwarded-Proto" "https";
HTTP::header remove "X-Forwarded-For"
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
set httphost [string tolower [HTTP::host]]
switch -glob $httphost {
"site1.com" {
pool site1
}
"site2.com" {
pool site2
}
"site3.com" {
pool site3
}
default {
HTTP::respond 404 noserver
TCP::close
event disable all
}
}
}
}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
