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.
Merge pull request #1724 from fknipp/fix/subdomain-behind-proxy

Fixing subdomain handling for Host request headers completely different