Forum Discussion
YossiV
Nimbostratus
Feb 24, 2016forward request to virtual server base on header on the url
Dear community
is there any option to make an irule or any other option so if a customer comes to the virtual server it will navigate him to specific pool but base on the header he comes .
i me...
Kai_Wilke
MVP
Feb 24, 2016Hi Yossi Vainbrand,
I would like to asume the "header" you are refering to, is the "HOST-header" (aka. http://report.domain.de/), right? If so then use the iRule below as a starting point..
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "report.domain.de" } then {
pool pool_report
} else {
pool pool_default
}
}
Cheers, Kai
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