When the Host header contains a port, looking up the Site record fails as the host will never match the domain.