Require https and use it instead of http if scheme is set to https.