Fixed a bug in HTTPS config