Forum Discussion
Roger_78752
Apr 05, 2011Nimbostratus
Split out clients using the Citrix Receiver w/ iRule
We want to use the same url for all our Citrix clients to access our Citrix environment. https://myapps.company.com. This works fine for full browser clients. When a client uses the Citrix Receiver app (ipad, iphone, etc) the app needs to be configured to go to https://myapps.company.com/citrix/mobile/config.xml due to how Citrix works. My preference is for mobile users to also be able to use https://myapps.company.com to simplify user/app setup.
Is the following irule the best way to redirect the receiver clients to the correct URL? I want non receiver clients to continue to go to their requested url of https://myapps.company.com.
when HTTP_REQUEST {
if { [HTTP::header User-Agent] contains "CitrixReceiver" } {
HTTP::redirect "https://myapps.company.com/citrix/mobile/config.xml" }
}
Any help would be appreciated. Thanks!
- Colin_Walker_12Historic F5 AccountIf you're 100% confident that the User-Agent will always have CitrixReceiver in it (precisely like that, case and all) then yes, that would work just fine. You might want to consider using string tolower on the HTTP::header portion of this, just in case.
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