# Advise on setting up IRULE

**URL:** <https://community.f5.com/t/advise-on-setting-up-irule/74378>\
**Category:** Technical Forums\
**Tags:** security, cloud, application-delivery\
**Created:** [April 20, 2024, 2:50pm UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378 "2024-04-20T14:50:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![samit](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@samit](https://community.f5.com/u/samit)\
**Post date:** [April 20, 2024, 2:50pm UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/1 "2024-04-20T14:50:30Z")

</div>

getting error " HTTP\_ Request event in rule requires an associated HTTP or FASTHTTP profile on virtual server

My requirement

When client request for &nbsp;URL [https://netforum.rotaryintl.org/xwebevents](https://netforum.rotaryintl.org/xwebevents) it should hit the pool &nbsp;NF\_PRD\_XWEBEVENTS\_443

AND

When the client request for URL [https://netforum.rotaryintl.org](https://netforum.rotaryintl.org) it should hit the pool Netforumprd\_443\_Pool

Current SETUP

VIP is configured with port set to 443

---

<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:** [April 20, 2024, 4:09pm UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/2 "2024-04-20T16:09:12Z")

</div>

In order to have an iRule that would direct traffic based on anything in the HTTP header you would need the HTTP profile and be performing SSL termination otherwise it will not work.

---

<div class="post-metadata">

**Author:** ![Teerarat](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/teerarat/32/4921_2.png) [@Teerarat](https://community.f5.com/u/Teerarat)\
**Post date:** [April 22, 2024, 4:28am UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/3 "2024-04-22T04:28:36Z")

</div>

Hi Samit,

When you would like to check about HTTP header you have to add HTTP Profile, Client SSL on virtual server

Example IRULE

when HTTP\_REQUEST {  
&nbsp;&nbsp;if { [HTTP::uri] contains “/xwebevents\*” }{  
&nbsp;&nbsp;&nbsp; pool NF\_PRD\_XWEBEVENTS\_443  
&nbsp; } else {  
&nbsp;&nbsp;&nbsp; pool Netforumprd\_443\_Pool  
&nbsp; }  
}

---

<div class="post-metadata">

**Author:** ![samitjadhav](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@samitjadhav](https://community.f5.com/u/samitjadhav)\
**Post date:** [April 23, 2024, 9:38am UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/4 "2024-04-23T09:38:34Z")

</div>

Hi Paulius and Teerarat,

Thankyou! for the update but the SSL termination is currently&nbsp; on the server end . In that case , is there any alternative to tweak in the irule or configure a seperate policy .

---

<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:** [April 23, 2024, 12:30pm UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/5 "2024-04-23T12:30:21Z")

</div>

If you have a HTTPS virtual server you need a Client SSL profile which is what you will have to configure. An additional note, you do not have a reason to have a Server SSL profile because the traffic is already encrypted without any SSL profiles encrypted.

---

<div class="post-metadata">

**Author:** ![samit](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@samit](https://community.f5.com/u/samit)\
**Post date:** [April 24, 2024, 8:34pm UTC](https://community.f5.com/t/advise-on-setting-up-irule/74378/6 "2024-04-24T20:34:14Z")

</div>

Thankyou Paulius for your valuable support.
