KNOX-439: URL pattern matching fails for default ports HTTP 80 and HTTPS 443

(cherry picked from commit b40aa7881697645ce9dca5f167ce12bfa91c4d59)