Forum Discussion
Brett_10751
Sep 28, 2011Nimbostratus
Modify URI without redirecting then send to pool
We have a single virtual server.
The idea is when users hit this single virtual server (single domain name) they will be sent to different pools based on uri
Example:
domainA.com/jobs to pool jobs
domainA.com/training to pool training
I have it working but only if I create two separate irules. When I try to merge them it doesn't seem to work. Not sure what I'm doing wrong.
When they go to /jobs the pool they get sent to has a virtual directory called jobs on the web server
When they go to /training the pool they get sent to does not have a training directory, the actual directory on the web server is /wfctrain
Question 1 Looking to merge these two rules. Right now both rules are applied to a single vip with rule 1 on top.
rule 1 when HTTP_REQUEST { if { [HTTP::uri] starts_with "/training" } { HTTP::uri /wfctrain log local0. "Original URI: [HTTP::uri], New URI: /wfctrain" } }
rule2 when HTTP_REQUEST { switch -glob [HTTP::path] { /training* { pool training } /jobs* { pool jobs } default { pool domainA.com } } }
Question 2 With this type of setup if they type in /training and it rewrites the uri to /wfctrain , at this point the path shows up as domainA.com/training, once the user tries to login to the web server the web path changes to from /training to /wfctrain/portal (the uri we wanted to keep hidden is exposed). Is there any way to make it so the /training uri always stays in the path?
Question 3 Also what do people do in this situation when using a single vip and single fqdn?
domainA.com/sharepoint uri sends to unique pool that has a root page / and multiple sub directories /hr, /acct
domainA.com/webspace uri sends to unique pool that has a root page / and multiple sub directories /web, /it
I know you can make a default pool for domainA so one of these sites can access the home page if they just type in domainA.com/, but I'm confused on how to make it work for multiple web sites that have a / home page.
Thanks for all the help. This forum has been very helpful in getting me this far.
Brett
- Michael_YatesNimbostratusHi Brett,
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects