pattern updated
add port support and url scheme and host checking problem fixed