Set protocols["https"] and ssl_to_gear off of each other but prefer http to https if there is a choice.