Forum Discussion
Albert__Tase_70
Nimbostratus
Mar 19, 2008ssl persistance and base on uri contents
Is 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
????
thanks
- Nicolas_Menant
Employee
Hi, - The_Bhattman
Nimbostratus
Another alternative code would look like the following:when HTTP_REQUEST { switch [HTTP::uri] { "x" { persist ssl [SSL::sessionid] 1800 pool poolx } "y" { pool pooly } } }
when HTTP_REQUEST { if { [HTTP::uri] eq "x" } { persist ssl [SSL::sessionid] 1800 pool poolx } else { pool Pooly } }
- Nicolas_Menant
Employee
[ERROR FIXED] - The_Bhattman
Nimbostratus
It was a cut and past error I just fixed. - Albert__Tase_70
Nimbostratus
I tired the following and can't seem to get the syntax right - Nicolas_Menant
Employee
Hi, - Nicolas_Menant
Employee
yes it's normal PROFILE::persist command is to retrieve data, not set them up. - The_Bhattman
Nimbostratus
According to the wiki PROFILE::persist doesn't set the persistance but simply returns a value after it is selectedwhen HTTP_REQUEST { if { [HTTP::uri] eq "/x" } { pool poolx } else { persist none pool pooly } }
- Nicolas_Menant
Employee
Hi, - Albert__Tase_70
Nimbostratus
ok when i use the last post it still not working
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