add configurations to rewrite for vhosts