help irules for compatibilty
Please , someone can help me wiyh the irule below:
when HTTP_REQUEST {
log local0. "HTTP Method = [HTTP::method]"
log local0. "HTTP URI = [HTTP::uri]"
log local0. "HTTP Path = [HTTP::path]"
log local0. "HTTP Query = [HTTP::query]"
log local0. "HTTP Version = [HTTP::version]"
log local0. "HTTP Host Header = [HTTP::host]"
log local0. "HTTP User Agent Header = [HTTP::header value "user-agent"]"
if { [HTTP::host] eq "pp.appro-cb.pmu.fr" }{
pool POOL__PREPR
SSL::disable serverside
HTTP::header insert X-Forwarded-For [IP::remote_addr]
} elseif { [HTTP::host] contains "lab.tech.zu" }{
pool POOL_GITLAB
} elseif { [HTTP::host] contains "nessus.tech.ai" }{
pool POOL_NEXUS
} elseif { [HTTP::host] contains "rai5.pp.ei" }{
pool POOL_STP_RE5_appv1
} elseif { [HTTP::host] contains "apicccc-tech.ai" }{
pool POOL_APICMD_TST
} elseif { [HTTP::host] contains "myhome-pp.pcc.ai"}{
pool POOL_MYBET_PP
HTTP::header insert Access-Control-Allow-Origin "[HTTP::header Origin]" \
HTTP::header insert Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS" \
HTTP::header inster Access-Control-Expose-Header "Pmu-Session-Id" \
HTTP::header insert Access-Control-Allow-Headers "Pmu-Session-Id,OTT,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,correlationId,emetteur,idDevice" \
HTTP::header insert Access-Control-Allow-Credentials "true"
return
}
}