Fix configuration for HTTP vs HTTPS