Forum Discussion
sundogbrew
Altocumulus
Mar 26, 2013irule to pick a number out of a URI and make it the port
I have developers who want to tie everything off the same URL and have it go to different ports on the same group of hosts. If you have been following my posts, it is almost the exact opposite probl...
sundogbrew
Altocumulus
Apr 23, 2013Steve,
Thanks for your help!
If I get behind the firewall and F5 I can go to
http://172.20.5.15:8080/ESB/App1/
I have my pool set for 8080 and 172.20.5.15 is the only host in my pool.
Tue Apr 23 12:04:35 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: /ESB/App1/
Tue Apr 23 12:04:35 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Tue Apr 23 12:04:35 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Tue Apr 23 12:04:35 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : /ESB/App1/
Tue Apr 23 12:04:35 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Tue Apr 23 12:04:49 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: /ESB/App2/
Tue Apr 23 12:04:49 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Tue Apr 23 12:04:49 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Tue Apr 23 12:04:49 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : /ESB/App2/
Tue Apr 23 12:04:49 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Tue Apr 23 12:05:00 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: /ESB/App3/
Tue Apr 23 12:05:00 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Tue Apr 23 12:05:00 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Tue Apr 23 12:05:00 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : /ESB/App3/
Tue Apr 23 12:05:00 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
It looks like it works with 5 but it isn't doing the port, it is only working for the default pool. So I think it is picking up the right URI and just going to the default pool which is 8080. Not working in the App2 and App3 because of the port? I don't have to define the pools in the rule do I? Can the rule push traffic to a pool that isn't in the config for the Vhost?
Thanks
Joe
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