Forum Discussion

mikey_webb's avatar
Jan 28, 2016

LTM Traffic Policy

I 'm going round in circle here!

 

I want to assign numerous actions for a request to a host. so I have rule properties for http-host equals dems.test.co.uk - the actions I want and where need help are as follows:-

 

redirect to https and add uri to end - https://dems.test.co.uk/Scripts - where I'm having issue forward to pool - done and fine with this, forward request to pool

 

first I assume I can actually have multiple actions and assume it completes all of them and not just the first?

 

1 Reply

  • Hi,

     

    The easiest solution is to redirect HTTP to HTTPS first, then redirect / to /script if HTTPS VS.

     

    HTTP Virtual server
    • Assign irule _sys_https_redirect
    Policy assigned to HTTPS VS

    rule1:

     

    • conditions:
      • http-host host equals dems.test.co.uk
      • http-uri path equals /
    • Actions
      • http-reply redirect location /Scripts

    rule2:

     

    • conditions:
      • http-host host equals dems.test.co.uk
    • Actions
      • forward pool pool_dems