Forum Discussion

Sheetal_43349's avatar
Sheetal_43349
Icon for Nimbostratus rankNimbostratus
Sep 09, 2018

URL redirection not working after upgrade

Hello,

 

I upgrade the F5 cluster to 13.1.0.8 and after that one of our service stopped responding which is redirecting to /Citrix/InternalWeb after successful user authentication. But for some reaosn, this is not working.

 

In /var/log/ltm, i see numerous messages like

 

03:47 **** err tmm1[19610]: 01220001:3: TCL error: //irule_apm_citrix_test_v4 - ERR_ARG (line 1) invoked from within "HTTP::uri" Sep 9 11:03:50 *** info tmm3[19610]: Rule //irule_apm_citrix_test_v4 : Redirecting to /Citrix/InternalWeb/

 

Please advise how this can be fixed.

 

Regards Sheetal

 

3 Replies

  • when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable set citrix_logout 0 } when ACCESS_ACL_ALLOWED { set type [ACCESS::session data get session.client.type] if { !($type starts_with "citrix") } { if { [HTTP::uri] == "/" } { log local0. "Redirecting to /Citrix/InternalWeb/" ACCESS::respond 302 Location "https://[HTTP::host]/Citrix/InternalWeb/" } }

     

    if {[HTTP::uri] contains "Logoff" } { after 2000 { ACCESS::session remove} set citrix_logout 1 set http_host [HTTP::host] } } when HTTP_RESPONSE { if { $citrix_logout eq 1 } { HTTP::redirect "https://$http_host/vdesk/hangup.php3" } }

     

  • Try this:

    when HTTP_REQUEST {
        set uri [HTTP::uri]
        set host [HTTP::host]
    }
    when CLIENT_ACCEPTED {
        ACCESS::restrict_irule_events disable
        set citrix_logout 0
    }
    when ACCESS_ACL_ALLOWED {
        set type [ACCESS::session data get session.client.type]
        if { !(${type} starts_with "citrix") } {
            if { ${uri} == "/" } {
                log local0. "Redirecting to /Citrix/InternalWeb/"
                ACCESS::respond 302 Location "https://${host}/Citrix/InternalWeb/"
            }
        }
        if { ${uri} contains "Logoff" } {
            after 2000 { ACCESS::session remove}
            set citrix_logout 1
            set http_host ${host}
        }
    }
    when HTTP_RESPONSE {
        if { $citrix_logout eq 1 } {
            HTTP::redirect "https://$http_host/vdesk/hangup.php3"
        }
    }