Forum Discussion
Irule for www removal on https
- Aug 29, 2019
Hi,
Can you try this iRule in browser's incognito mode?
when HTTP_REQUEST { if {[string tolower [HTTP::host]] starts_with "www."}{ log local0. "hostname = [HTTP::host]" HTTP::redirect "https://[substr [HTTP::host] 4][HTTP::uri]" } }
Hi,
Can you try this iRule in browser's incognito mode?
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] starts_with "www."}{
log local0. "hostname = [HTTP::host]"
HTTP::redirect "https://[substr [HTTP::host] 4][HTTP::uri]"
}
}
- EmaSep 04, 2019Nimbostratus
Hi eaa,
This is strange that when I apply that iRule I don't see a log entry inside of /val/log/ltm for what I'm expecting hostname = www.abc.company.com. The only thing that I see is that the SSL Handshake failed which mean that for some reason it is skipping this irule. Any ideas as to why? The only thing that is different on this VS is that there is a pool assosiated with this and the other VS doesn't.
Thanks
- David_MSep 04, 2019Cirrostratus
Sounds like the ssl handshake fails because the CN name on the certificate doesn't match once you trim it?
- EmaSep 04, 2019Nimbostratus
It doesn't seem to execute the iRule that eaa provided me at all because I'm not able to see log entries for the hostname inside of the log. All I see is the SSL Handshake failures.
- David_MSep 04, 2019CirrostratusYou see the failures on the ltm log or packet capture?
Recent Discussions
Related Content
* 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