Forum Discussion
irule for two web app sharing one domain name
i am hosting two web applications behind F5 one coldfusion server and one asp.net , i need to create Irule so that when client use uri which contains aspx to go to specific pool other wise go to the default pool which is cmf(coldfusion ) , please help me with this
2 Replies
- MO_Aden_311156
Nimbostratus
when HTTP_REQUEST { if { [HTTP::uri] contains ".aspx" } {
pool asp_pool}
else {
pool cmf_pool }
i am new in this irule creation but i am thinking this logic is this correct , and how this can effect the production now i have only CMF app working and i dont have test environment
- Leonardo_Souza
Cirrocumulus
Yes, you already found the solution. :P I would just change HTTP::uri to HTTP::path. There is a small difference, that may provide better performance if your site use large query strings, as the HTTP::path is a smaller part of the HTTP::uri.
Read these pages, that explain each of them, and have examples ready to be used.
https://devcentral.f5.com/wiki/irules.http__uri.ashx
https://devcentral.f5.com/wiki/irules.http__path.ashx
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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