Forum Discussion
ukitsysadmin_95
Nimbostratus
Mar 19, 2010HTTP rewrite to specified nodes
Hello all,
Does anyone know how to write an irule for redirecting http requests to nodes in a pool.
I have a web farm of 10 servers all serving the same content, but I wa...
hoolio
Cirrostratus
Mar 19, 2010Hi Mr Sysadmin,
I think the problem might be that you're rewriting the URI to nothing. Can you change your rewrites to:
HTTP::path [string map -nocase {/nodeX "/"} [HTTP::path]]
Also, if you want another option that supports pinning the request to the server for the duration of the session, you can try this Codeshare example:
http://devcentral.f5.com/wiki/default.aspx/iRules/Select_pool_member_based_on_HTTP_query_string_parameter.html
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects