Fixed logic inversion on HTTPS/HTTP config