Forum Discussion

Asif_Pasha_3042's avatar
Asif_Pasha_3042
Icon for Nimbostratus rankNimbostratus
Jan 18, 2018

Irule to bypass APM logon page

Dear Experts,

 

Trying to bypass the apm logon page with url when specific path adds to it. Landing page: https://xyz.com Irule: when HTTP_REQUEST { if { ([HTTP::path] starts_with "/webservice")} { ACCESS::disable pool webservice-pool

 

ASM::enable "/Common/webservice" log local0. "APM disabled." } else { ACCESS::enable log local0. "APM enabled." } }

 

So, requirement is if someone tries to browse the url https://xyz.com/webservice then it should by pass the existing APM logon page & directly goto webservice url.

 

Please help.

 

1 Reply

  • Highlight your code and use tab so it displays like this. If you want to bypass the login page, try this.

     

    when HTTP_REQUEST { 
      if { ([HTTP::path] starts_with "/webservice")} { 
        ACCESS::disable
        log local0. "APM disabled." 
      }
    }