cancel
Showing results for 
Search instead for 
Did you mean: 

Couple of questions. irule pool validation and call?

Wendell
Nimbostratus
Nimbostratus

I have a couple of questions. The first is can I make a simple pool call to mystaging_stageb

 

if { [HTTP::cookie exists "clicklink"] } {

      switch [HTTP::cookie value "language"] {

            es {

                HTTP::header replace "Host" "hostdevelopmentservername.com"

                pool mystaging_stageb

              }

            default {

              if { [active_members CHECKMY_DEV01_WITH_PROXY] eq "0" } {

                switch [string tolower [HTTP::uri]] {

                  "/" { HTTP::respond 200 content [ifile get Maintenance.html] }

                  "/alert.png" { HTTP::respond 200 content [ifile get Alert.png] }

                  "/logo.png" { HTTP::respond 200 content [ifile get logo.png] }

                }

              } else {

                pool CHECKMY_DEV01_WITH_PROXY 

              }

            }

          }

       } else { 

         if { [HTTP::cookie exists "language"] } {

            switch [HTTP::cookie value "language"] {

              es {

                

                HTTP::header replace "Host" "hostdevelopmentservername.com""

                pool mystaging_stageb

              

              }

              default {

                if { [active_members CHECKMY_DEV01_WITH_PROXY ] eq "0" } {

                  switch [string tolower [HTTP::uri]] {

                    "/" { HTTP::respond 200 content [ifile get Maintenance.html] }

                    "/alert.png" { HTTP::respond 200 content [ifile get Alert.png] }

                    "/logo.png" { HTTP::respond 200 content [ifile get logo.png] }

                  }

                }

              }

            }

 

 

 

Secondly, can I update my pool mystaging_stageb to not do an activate member heatlhcheck how do I turn this off or do I need to create a new pool without the healthcheck?

 

 

 

Third: how do i move from my snat pools to automap can this be updated or do i need to create new snat pools?

 

0 REPLIES 0