use create_resource in vhosts