Automatically redirect HTTP to HTTPS in Dynatrace Cluster nodes

Yes, this should work. However, this snippet will probably disappear after upgrade.