Extended scheme detection (ssl might be configured on a different port)