Forum Discussion
select tcp profile by host in a irule
Hi ..
I want to use different tcp profiles for two webservices, using the same webserver (with two vhost). one for normal "computer"- webservice and one for "mobile"- webservice.. I have tryed this (but it does not work) :
when HTTP_REQUEST { set vhost [HTTP::host] switch $vhost { "web.domain.com" { use [PROFILE::tcp] "tcp-wan-optimized" } "mobil.domain.com" { use [PROFILE::tcp] "tcp-cell-optimized" } } }
1 Reply
- Kevin_Stewart
Employee
This, unfortunately, will never work. The TCP profile works at OSI layer 4, while HTTP events work at layer 7. By the time you get to HTTP_REQUEST, the TCP profile has already been applied. You best bet I think is to create two separate VIPs on different IP addresses, and with different TCP profiles.
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