Forum Discussion

Roger_78752's avatar
Roger_78752
Icon for Nimbostratus rankNimbostratus
Apr 05, 2011

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_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If 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.

     

     

    Colin