Forum Discussion

3 Replies

  • Hi, Traffic can be redirected to specific node not URI(i guess). you can use redirection at server side later to reach specific page. Guys please correct me.

                    when HTTP_REQUEST {
                    if { [string tolower [HTTP::uri] ] starts_with "/monthly-portfolio-report" } {
                        node 192.168.15.90
                        }
                        else { pool xyz }
                    }
    
  • TechT's avatar
    TechT
    Icon for Nimbostratus rankNimbostratus

    Hi Chris, can you please try the below code (hope you have the index page configured on the given node).

     

     when HTTP_REQUEST { 
    if { ([HTTP::path] contains "abc.com/monthly-portfolio-report") } {
        node 192.168.15.90 }
    else { pool  }
  • Hi Maneesh,

    Why do you specify pool default pool???

    when HTTP_REQUEST { 
        if { ([HTTP::host] equals "abc.com") && ([HTTP::path] starts_with "/monthly-portfolio-report") } {
            node 192.168.15.90
        }
    }