Forum Discussion
Joe_Pipitone
Nimbostratus
Apr 27, 2015iRule not catching www.domain.com
The following iRule section where I've indicated "domain1.com" - "domain2.com" {" is not catching the domain1.com with the www. The iRule redirects perfectly fine if I exclude the www. Perhaps the ...
Mike_G_is_1_134
Nimbostratus
Apr 27, 2015If you are unsure if the domain name is matching place a log statement below it:
"*domain1.com" - "*domain2.com" {
log local.0 "[HTTP::Host] has matched *domain1.com or *domain2.com"
switch -glob [string tolower [HTTP::uri]] {
That will cause the actual value of [HTTP::Host] to be printed to the ltm logs if it matches your domain. You could also put a default into the switch that might offer more detail as to why your host is not matching the wildcard.
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