Forum Discussion
Jordan-N_198992
Nimbostratus
Apr 26, 2015iRules For Redirection and Selecting Pool
Hello All,
I'm very new to iRules and would like some guidance on if the following is possible.
We're trying to force all external participants who's joining our Lync meeting to go via Lync...
Jordan-N_198992
Nimbostratus
May 03, 2015Ended up using the code below which works for us.
Thanks for all your help Samir.
when HTTP_REQUEST {
if {[HTTP::method] eq "GET"}{
switch -glob [string tolower [HTTP::host]] {
lyncweb.domain.com* { pool lyncpool.domain.com }
officeweb.domain.com* { pool officewebapp.domain.com }
dialin.domain.com* { pool lyncpool.domain.com }
lyncdiscover.domain.com* { pool lyncpool.domain.com }
}
if {([HTTP::host] eq "meet.domain.com" ) && ([HTTP::uri] ends_with "?sl=1")}{
pool lyncpool.domain.com
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]?sl=1"
log local0. "https://[HTTP::host][HTTP::uri]?sl=1"
}
}
}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