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
One way to do this would be with 2 separate pools - one for the the port 81 apps, and the other for the port 82 apps. Then 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 }
}
}
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