Forum Discussion

AngryCat_52750's avatar
AngryCat_52750
Icon for Nimbostratus rankNimbostratus
Nov 07, 2013

iRule to bypass APM and straight to a pool

we have a website with 3 host names - www, manage and register.example.com. they all hit the same VS.. and the VS is associated with a APM policy for the www portion.

 

Is there a way to bypass the APM login for the manager.example.com and register.example.com and send that to a specific pool???

 

2 Replies

  • would this then just bypass APM and route to the default pool??

    when HTTP_REQUEST { if { ([HTTP::host] equals "register.example.com") or ([HTTP::host] equals "manage.example.com")}
        { ACCESS::disable return }
        }
    
  • Here's another version:

    when HTTP_REQUEST {    
        switch [string tolower [HTTP::host]] {        
            "manage.example.com" -            
            "register.example.com" {            
                ACCESS::disable
            }
        }        
    }