Forum Discussion
amr_magdy_25051
Nimbostratus
Apr 16, 2017Irule that select pool memeber based on client language in http header
I am trying to make an irule that forwards traffic to a specific pool or pool member based on client language used in http header
Stanislas_Piro2
Cumulonimbus
Apr 18, 2017Hi,
Accept-language is a list of all accept languages... if the first language is not in the list, check for the second one until you find one manage language...
when HTTP_REQUEST {
pool pool_app_english
foreeach language [split [HTTP::header "Accept-Language"] ","]
switch -glob $language {
"en*" { pool pool_app_english; break}
"jp*" { pool pool_app_japanese ; break}
"de*" { pool pool_app_german ; break}
default { }
}
}
}
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