Spent some time sorting through SSL termination zxtm logic