Forum Discussion
Johnde
Cirrus
6 years agoMultiple Web Applications behind single VS
I am planning to configure multiple applications/URLs behind one Virtual server for saving my public IPs. Please suggest me how can i achieve it?
- 6 years ago
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
Mayur_Sutare
MVP
5 years ago,
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]]"
}