Forum Discussion
Richard_
Altocumulus
Oct 27, 2014Odd APM logon deny messages
Hi,
Recently I build a portal for my customers so they can access their Citrix published desktop from a remote location. The BIG-IP is only proxy and does not provide the webinterface portal itself...
Thomas_Gobet
Nimbostratus
Oct 27, 2014Hi,
Your problem in on your switch condition.
If your client comes with a URI /customer1/test, his request will match your default condition.You should use -glob option and a wildcard at the end of your URIs :
when HTTP_REQUEST {
set reload_page {
No valid page. Please choose the correct one.
}
switch -glob [string tolower [HTTP::uri]] {
"/customer1*" {
event disable
HTTP::redirect "https://portal.website.foo/Citrix/Remote-Customer1/auth/login.aspx"
}
"/customer2*" {
event disable
HTTP::redirect "https://portal.website.foo/Citrix/Remote-Customer2/auth/login.aspx"
}
"/customer3*" {
event disable
HTTP::redirect "https://portal.website.foo/Citrix/Remote-Customer3/auth/login.aspx"
}
"/" {
log local0. "iRule : No URI choosen."
HTTP::respond 200 content $reload_page
}
Default {
log local0. "iRule : None of the above ;-)"
}
}
}
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