Forum Discussion
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
- Michael_Jenkins
Cirrostratus
One way you could do that is with a Local Traffic Policy, checking for
to be /application/ and then changing the pool to a different pool containing the 10.10.10.2 server.URIThat 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
and theswitch
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).-glob 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*?
- Michael_Jenkins
Cirrostratus
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
Cirrostratus
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. - 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com