FIX: setting secureEndpoint for virtual hosts