Forum Discussion
tabkad_89844
Nimbostratus
Aug 21, 2011irule for port redirection based on Domain names
I have a webserver listening on multiple ports for different urls.
I have made an irule to start with;
I have a webserver listening on multiple ports for different urls.
...
The_Bhattman
Nimbostratus
Aug 21, 2011Hi tabkad,
Try the following
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::host]] { "abc.com" { pool pool_abc}
"xyz.com" { pool pool_xyz }
"*.abc" { pool pool_allstar_abc }
"*.xyz.com" { pool pool_allstar_xyz }
}
} I hope this helps Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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