make vhosts compatible and add vhost_port everywhere