Forum Discussion

Rosieodonell_16's avatar
Feb 24, 2015

Sharepoint has path/link to another resource

I used the latest Sharepoint iapp to create my sharepoint site to help me replace our Microsoft TMG with the F5. User externally access it from www.company.com (changed name for security purposes). The traffic for www.company.com points to a virtual server with one member in its pool (10.10.10.1). All mappings cause the traffic to be https.

 

Currently if a user types www.company.com/application/, they get pointed to another server (10.10.10.2). the traffic on this server is http and not https. Just wondering how do i rewrite the traffic to this new server?

 

7 Replies

  • One way you could do that is with a Local Traffic Policy, checking for

    URI
    to be /application/ and then changing the pool to a different pool containing the 10.10.10.2 server.

    That would be more efficient than using an iRule, but if you wanted to use an iRule, you could check for the uri /application/ and then change the pool yourself.

    when HTTP_REQUEST {
        switch -glob -- [string tolower [HTTP::uri]] {
            "/application" -
            "/application/" {
                pool ANOTHER_POOL
            }
            "*CONTAINS*" {}
            "STARTSWITH*" {}
            "*ENDSWITH" {}            
        }
    }
    

    With the

    switch
    and the
    -glob
    parameter, you can do wildcard searching, so it'd be like using contains or starts_with operators (the latter 3 I put in there are examples).

  • Sorry new to irules, so if i want it to say contains /application/* and points to the server. how do i change the code. Do i replace the glob with contains*?

     

  • This should help. You'll just need to change the code to use the new pool name with the right server.

     

    when HTTP_REQUEST {
        switch -glob -- [string tolower [HTTP::uri]] {
            "/application" -
            "/application/*" {
                pool ANOTHER_POOL
            }           
        }
    }
  • Michael J, thank you for all the help. That iRule did the job once i added the "" at the end of the /application/.

     

  • Michael, hopefully you can help with an issue i am having off this page. The web designers have embedded a java script that points to maps.googleapis.com. When i run it from Chrome i get a blank square where the map is supposed to be. When i run it from my Internet Explorer, I get a pop-up that says "only secured content is displayed" and a click button for "show all content". If i click the button, then the maps pops up fine.

     

    Is there a way to make this work?

     

    • Michael_Jenkins's avatar
      Michael_Jenkins
      Icon for Cirrostratus rankCirrostratus
      Easiest thing is to get the web designers to use https instead of http for referencing the google stuff. That way regardless of whether your page is http or https it'll be ok.
    • Rosieodonell_16's avatar
      Rosieodonell_16
      Icon for Cirrus rankCirrus
      So i am in the process of asking if they push back (weird bunch of guys) is there an irule that can shape it? *edit* turns out an outside vendor makes changes and it is quite a process to get them to change things. So it looks like they can't make the easy change.