Forum Discussion
Chris_Corsaro_1
Nimbostratus
Mar 16, 2006uri pool redirection using single domain
Hello,
I need to redirect user connections from a single domain name with different virtual server directories. I am sorry but I'm very new to iRules, so please bear with me, I am truly a n...
Dave__Blodgett_
Nimbostratus
Mar 20, 2006Joe - I work with Chris, and we have tried about a dozen different ways to get this to work. Still no success whatsoever.
What we're trying to do is pretty simple (certainly compared to some of the complex functions that Irules can handle).
We are trying to create a basic Irule that does the following:
The url http://whatever.wherever.net is set up as a virtual server on the DMZ side of the device. Let's say the address is 10.11.11.1.
On the internal side of the device, we've got, let's say, 3 nodes. Their addresses are:
10.10.10.1
10.10.10.2
10.10.10.3
Our sole objective is to route the session based on the URI, and change the protocol to SSL.
In other words, if the client hits http://whatever.wherever.net (resolves to 10.11.11.1), they should get nothing (maybe I'll have a default error page). The external listening ports should be 80 and 443.
But if they hit http://whatever.wherever.net/client1, they should be routed to 10.10.10.1:8080.
If they hit http://whatever.wherever.net/client2, they should be routed to 10.10.10.2:8080.
If they hit http://whatever.wherever.net/client3, they should be routed to 10.10.10.3:8080.
10.10.10.x:8080 is how the nodes are configured.
We'd also like to protocol to be redirected to HTTPS.
The only other caveat is that the URI might change to /client3admin or /client3report, so we'll need to use the starts with function.
So far we haven't even tried to get the SSL redirect because we can't even get the first rule to work at all, and we've tried it many different ways (we've tried countless variations of the methods described in http://devcentral.f5.com/Default.aspx?tabid=29&articleType=ArticleView&articleId=28, and no matter what, we just get a default apache error page (not found)).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
