Forum Discussion
The_Bhattman
Nimbostratus
Mar 21, 2008Hi Al,
I am not sure I follow with you just stated? Let's recap so refocus on the issue.
Your original request was
"there a way to use irule like this
when https request comes in to vip if the request contains x in the uri use ssl persit profile and use pool x
else use pool y"
The following is the iRULE that was created based on this.
When HTTP_REQUEST {
if { [HTTP::uri] contains "x" } {
persist uie [SSL::sessionid] 1500
pool poolx
} { else {
pool pooly
}
}
}
Of course you need to create the universal persistence profile
1. Check Local Traffic, then then Profiles
2. From the Persistence menu, select Create
3. Type a name for the universal persistence profile
4. From the Persistence menu, select Universal
5. In the Configuration section, select the iRule check box, then select the persistence iRule you created.
6. Click Finished
You must now associate the universal persistence profile with the virtual server that is running the irule.
The code above invokes the universal persistence profile only when the URI contains "x" and then sends the request towards Poolx. If it does not contain "x" it sends it to pooly w/o persistence.
Where in this summary does it fail for you? Are you looking to do more then this?
/CB