Forum Discussion
VJ_96387
Nimbostratus
Mar 08, 2010URI Redirection
Hello all,
Need your help again!!!
I have a portal which has a multiple alias names and this is registered with external DNS servers. This portal can be accessed via inte...
hoolio
Cirrostratus
Mar 08, 2010Can you uncomment the log statements, retest and include details of what's not working?
It would also be more efficient to use string tests instead of using regexp to check the host header value. And you can use a switch to check the host header value:
Check the requested host header set to lowercase
switch -glob [string tolower [HTTP::host]] {
"*.abc.corp" -
"*.abc.com" {
Do nothing as host ends with abc.corp or abc.com
}
default {
Redirect client with abc.corp appended
set host "[HTTP::host].abc.corp"
}
}
Aaron
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