Forum Discussion
Tony2020
Nimbostratus
Nov 08, 2016LTM displaying notification based on matching muliple DNS alias/hostnames tied to the VIP
Hi All, I have tired to get this working but it does not seem to be. Here is what we need to do. When users comes in as or (DNS alias) that points to this same VIP, we want the F5 to loo...
Tony2020
Nimbostratus
Nov 08, 2016Hi Kai,
Same thing...Error while trying to save this iRule. For some reason, it does not like the HTML parameters. I have removed the meta value for the refresh from this code as we probably do not need it.
01070151:3: Rule [/Common/TEST-Message-V1] error: /Common/TEST-Message-V1:20: error: [undefined procedure:
][
]
/Common/TEST-Message-V1:22: error: [undefined procedure: We][We apologize for any inconvenience, please use "NewHostLink" instead.]
/Common/TEST-Message-V1:25: error: [undefined procedure: Thank][Thank you.]
/Common/TEST-Message-V1:27: error: [undefined procedure: ][]
/Common/TEST-Message-V1:28: error: [undefined procedure: ][]
/Common/TEST-Message-V1:29: error: [undefined procedure: "][" "Content-Type" "text/html"]
when HTTP_REQUEST {
switch -exact -- [string tolower [HTTP::host]] {
"host1" -
"host2" {
switch -exact -- [HTTP::uri] {
"/decommission-message" {
HTTP::respond 200 content "
Link Decommission Notification
Dear All:
Please note that the site/domain for "Host1" and "Host2" will no longer be used.
We apologize for any inconvenience, please use "NewHostLink" instead.
Thank you.
" "Content-Type" "text/html"
}
default {
HTTP::redirect "/decommission-message"
}
}
}
}
}- Kai_WilkeNov 09, 2016
MVP
Hi Tony,
sorry my fault. Missed to escape the
chars within the HTML. I've already updated my last post..."Cheers, Kai
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