Forum Discussion

CGI's avatar
CGI
Icon for Altostratus rankAltostratus
Apr 25, 2012

Replacing a ISA rule

Hi we have replaced a ISA server with a bigip ltm and i need to silently rewrite a uri and send it to another host (pool).

 

The uri collects data to do a overlay on a map, at the moment its not working.

 

 

The uri is /MapProxy/sparrzoner/* and need s to be translated to /ArcGIS/rest/services/sparrzoner/MapServer/*

 

 

but on another host.

 

 

I thought first of doing this with proxypass but iam not getting it to work and i can see that in the translated path there are extra /, any ideas how this could solved.

 

 

Maybe iam making thsi more complicated that it needs to be with proxypass ?

 

 

 

Regards Craig

2 Replies

  • Hi Craig,

    If you create a separate pool containing the server(s) for this URI, you can use an iRule like this:

    
    when CLIENT_ACCEPTED {
    set default_pool [LB::server pool]
    }
    when HTTP_REQUEST {
    switch -glob [HTTP::path] {
    "/mapproxy/sparrzoner/*" {
    pool map_pool
    HTTP::path [string map -nocase {/MapProxy/sparrzoner/ /ArcGIS/rest/services/sparrzoner/MapServer/} [HTTP::path]]
    }
    default {
    pool $default_pool
    }
    }
    }
    

    Aaron
  • CGI's avatar
    CGI
    Icon for Altostratus rankAltostratus
    Thanks a lot worked quite well the only change that was necessary was to remove the trailing slash from the /MapProxy/sparrzoner, iam not sure why but it would seem that otherwise the paths dont work, its most small jpg files.

     

    Anyway thanks for the valuable input.

     

     

    /Craig