Fixing subdomain handling for Host request headers completely different

from the configured host (like behind an Apache reverse proxy)

host.indexOf(apphost) returns -1 in this case, which is a true value.