fix @resource.server may be multiple domain