Select pool based on client certificate and URI

Hi.

I am new on Irules and I have this requirement:

It is a VS and it is needed this conditioning based on client certificate and URI in order to select the pool:

if client sends ssl certificate set HEADER1 and balance to pool1 else if clients connects and URI matches /static balance to pool2 else balance to pool3

HEADER1: add header X-SSL-Client-CN and set it as %[ssl_c_s_dn(cn)]

Thanks a lot for any answer.

Best regards

Check these links:

iRule: insert cert info into HTTP headers

SOL5171

The above links should be able to provide you with a template to work on an iRule that would be useful for you. If you still assistance, paste the iRule that you have created for further assistance.