# help irules for compatibilty

**URL:** <https://community.f5.com/t/help-irules-for-compatibilty/74298>\
**Category:** Technical Forums\
**Tags:** security, application-delivery\
**Created:** [April 4, 2024, 2:31pm UTC](https://community.f5.com/t/help-irules-for-compatibilty/74298 "2024-04-04T14:31:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbamini](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@dbamini](https://community.f5.com/u/dbamini)\
**Post date:** [April 4, 2024, 2:31pm UTC](https://community.f5.com/t/help-irules-for-compatibilty/74298/1 "2024-04-04T14:31:44Z")

</div>

Please , someone can help me wiyh the irule below:

when HTTP\_REQUEST {  
&nbsp; log local0. “HTTP Method = [HTTP::method]”  
&nbsp; log local0. “HTTP URI = [HTTP::uri]”  
&nbsp; log local0. “HTTP Path = [HTTP::path]”  
&nbsp; log local0. “HTTP Query = [HTTP::query]”  
&nbsp; log local0. “HTTP Version = [HTTP::version]”  
&nbsp; log local0. “HTTP Host Header = [HTTP::host]”  
&nbsp; log local0. “HTTP User Agent Header = [HTTP::header value “user-agent”]”  
&nbsp; if { [HTTP::host] eq “[pp.appro-cb.pmu.fr](http://pp.appro-cb.pmu.fr)” }{  
&nbsp; &nbsp; pool POOL\_\_PREPR  
&nbsp; &nbsp; SSL::disable serverside  
&nbsp; &nbsp; HTTP::header insert X-Forwarded-For [IP::remote\_addr]  
&nbsp; } elseif { [HTTP::host] contains “lab.tech.zu” }{  
&nbsp; &nbsp; pool POOL\_GITLAB  
&nbsp; } elseif { [HTTP::host] contains “nessus.tech.ai” }{  
&nbsp; &nbsp; pool POOL\_NEXUS  
&nbsp; } elseif { [HTTP::host] contains “rai5.pp.ei” }{  
&nbsp; &nbsp; pool POOL\_STP\_RE5\_appv1  
&nbsp; } elseif { [HTTP::host] contains “apicccc-tech.ai” }{  
&nbsp; &nbsp; pool POOL\_APICMD\_TST  
&nbsp; } elseif { [HTTP::host] contains “myhome-pp.pcc.ai”}{  
&nbsp; &nbsp; pool POOL\_MYBET\_PP  
&nbsp; &nbsp; &nbsp;HTTP::header insert Access-Control-Allow-Origin “[HTTP::header Origin]” \  
&nbsp; &nbsp; &nbsp;HTTP::header insert Access-Control-Allow-Methods “GET, POST, PUT, DELETE, OPTIONS” \  
&nbsp; &nbsp; &nbsp;HTTP::header inster Access-Control-Expose-Header “Pmu-Session-Id” \  
&nbsp; &nbsp; &nbsp;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” \  
&nbsp; &nbsp; &nbsp;HTTP::header insert Access-Control-Allow-Credentials “true”  
&nbsp; &nbsp; &nbsp; &nbsp; return

}

}

---

<div class="post-metadata">

**Author:** ![spalande](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/spalande/32/10043_2.png) [@spalande](https://community.f5.com/u/spalande)\
**Post date:** [May 1, 2024, 9:22am UTC](https://community.f5.com/t/help-irules-for-compatibilty/74298/2 "2024-05-01T09:22:46Z")

</div>

Can you specify what help are you looking for?

---

<div class="post-metadata">

**Author:** ![Paulius](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/paulius/32/21698_2.png) [@Paulius](https://community.f5.com/u/Paulius)\
**Post date:** [May 1, 2024, 3:55pm UTC](https://community.f5.com/t/help-irules-for-compatibilty/74298/3 "2024-05-01T15:55:00Z")

</div>

Looking at the iRule overall I don’t see errors but as @spalande stated, what exactly are you needing assistance with solving?
