app: support vhosts