koajs/examples — pull request #34 by RobinvdVleuten (2014-07-17 11:09:54+00:00)
Title: 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.