Forum Discussion
Kevin_Stewart
Sep 10, 2013Employee
Well, you're getting redirected, so that's something. Let's add some debug logging:
when HTTP_REQUEST {
log local0. "Host equals [HTTP::host]"
log local0. "Request URI equals [HTTP::uri]"
if { [HTTP::uri] equals "/" } {
log local0. "URI equals /"
if { [class match [string tolower [HTTP::host]] equals Prod_Domains_dg] } {
log local0. "Matched a data group entry: [class match -value [string tolower [HTTP::host]] equals Prod_Domains_dg]"
HTTP::redirect "https://[HTTP::host][class match -value [string tolower [HTTP::host]] equals Prod_Domains_dg]"
}
}
}
Observe this in the LTM log from the management shell:
tail -f /var/log/ltm