generalize force_ssl