Forum Discussion
JimB_43720
Apr 14, 2011Nimbostratus
Change destination port based on hostheader
I wondered if I could use an irule to change the destination port of a standard http request based purely on the hostheader?
The current setup is as follows:
We are using BIG IP ...
James_Quinby_46
Apr 14, 2011Historic F5 Account
Posted By JimB on 04/14/2011 08:07 AM
Cool.
So if I set a default pool, all that means is that if the irule doesn't have amatch for an inbound request the traffic will be directed to the deault pool rather than any of those specified in the iRule?
In that case, you could do something like this:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
www.foo.com { pool port_81_servers }
www.bar.com { pool port_82_servers }
}
default { pool whatever_your_default_pool_is }
}
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