Forum Discussion
- MO_Aden_311156Nimbostratus
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_SouzaCirrocumulus
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