Forum Discussion

MatthewStyles_3's avatar
MatthewStyles_3
Icon for Nimbostratus rankNimbostratus
Mar 21, 2017

Content redirection based on URL

Hello,

 

We currently have a website () where users visit and post messages. We are looking to add a file upload facility to that users can click on a link (e.g. ) and they are presented with a screen to upload files.

 

Our current website is fronted by our F5 (LTM + ASM) and the traffic is passed to a default load-balanced server pool. What we are looking to do is to have the F5 check the traffic and when it spots is clicked it then directs the traffic for this link, and this link only, to a different pool (for the upload of files). Once they click away from the link then the traffic goes back to the default pool. Is this possible?

 

Hope that makes sense!

 

Any and all help gratefully received!

 

Many thanks

 

Matt

 

1 Reply

  • Hi,

    Leave the current pool as the default pool and apply this irule to your virtual server.

    when HTTP_REQUEST { 
        if {[HTTP::uri] starts_with "/upload_files" } {
            pool upload_pool
        }
    }
    

    Change the name of the pool to your file upload pool.

    The irule will send traffic to the file upload pool only if the uri starts with upload_files. If it doesn't match traffic will be send to the default pool.

    Cheers,

    Kees