Replace host with hostname for better switch match

I've copied over the example for using vhosts, but was confused for a second when I found out that this.host includes the port. It's maybe a better example in combination with the switch if you just use the hostname.