Forum Discussion
Multiple Web Applications behind single VS
- Mar 16, 2020
Hello John,
You can do it using iRule. Please refer below iRule.
when HTTP_REQUEST
{
switch [HTTP::host] {
"abc.com" {pool abc-pool}
"xyz.com" {pool xyz-pool}
}
}
In this way, you can add multiple application urls alongwith its associated pool. Entries here are case sensitive. Also make sure Virtual Server Configuration like SSL& http profiles, SNAT etc is proper to handle all requests.
Hope this will fulfill your requirement!
Mayur
,
Although this seems to be very old post but you can use below iRule. It will save you from adding multiple entries everytime. Just you need to take care of pool naming here so it will match the correct pool. If no specific pool is available, request wont get forwarded.
when HTTP_REQUEST {
pool "pool_[string tolower [HTTP::host]]"
}
Recent Discussions
Related Content
* 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