pub fn get_application_ids_by_domain(
    state: &ConfigState,
    hostname: String,
    path_begin: Option<String>
) -> HashSet<AppId>