Forum Discussion
Pool Selection Based on URL
Dear all,
i have two link in same IP and same port as below
1- https://192.168.1.1/M123/indexDev.html need select pool M123
2- https://192.168.1.1/MSA/indexDev.html need select pool MSA
I created one irule name is (TEST_IRULE) as below:
and i already created the pool M123
and the details of Virtual server as per attached image
when i tried to add the irules to VIP resources i get the below error msg : 01071912:3: HTTP_REQUEST event in rule (/Common/TEST_IRULE) requires an associated HTTP or FASTHTTP profile on the virtual-server (/Common/sson).
please support me
- Samir_Jha_52506
Noctilucent
-
Attach http profile to VIP if you are playing with http traffic.
-
Tune the above irule with switch statements.. link https://devcentral.f5.com/articles/irules-101-04-switch
-
Hi,
Please try the below one.
when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/msa/indexdev.html" { Pool MSA } "/m123/indexdev.html" { Pool M123 } } }
- Nandhini_Natara
Nimbostratus
Hi,
Please try the below one.
when HTTP_REQUEST { switch [string tolower [HTTP::uri]] { "/msa/indexdev.html" { Pool MSA } "/m123/indexdev.html" { Pool M123 } } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com