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 22, 2013OK so I changed the url to .test.com the rest is the same. The only thing I changed in your script above is the line pool pool_$newport
my pools are chuckpool_number the rest I left. It is showing the port as 0, 1, 2, 4 I
tried chucktest.test.com/8080/ESB/App1
chucktest.test.com/8081/ESB/App2
chucktest.test.com/8082/ESB/App3
Then just for giggles I tried
chucktest.test.com/8084/ESB/App3 which has no pool
What I am trying to get is
chucktest.test.com/8080/ESB/App1 to convert to chucktest.insidehost:8080/ESB/App1
I have three pools setup
chucktest_8080
chucktest_8081
chucktest_8082
And would like it to take the /8080 and convert it to the pool it is being sent to
Below are the errors:
Mon Apr 22 14:33:54 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Mon Apr 22 14:33:54 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Mon Apr 22 14:33:54 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Mon Apr 22 14:33:54 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: 4/ESB/App3
Mon Apr 22 14:33:46 EDT 2013 info tmm1 tmm1[8660] Rule /Common/log-test : chucktest.test.com::
Mon Apr 22 14:33:46 EDT 2013 info tmm1 tmm1[8660] Rule /Common/jose-portredirect-test : Newport Variable was empty
Mon Apr 22 14:33:46 EDT 2013 info tmm1 tmm1[8660] Rule /Common/jose-portredirect-test : New Port is:
Mon Apr 22 14:33:46 EDT 2013 info tmm1 tmm1[8660] Rule /Common/jose-portredirect-test : New URI is: 2/ESB/App3
Mon Apr 22 14:33:33 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Mon Apr 22 14:33:33 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Mon Apr 22 14:33:33 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Mon Apr 22 14:33:33 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: 1/ESB/App2
Mon Apr 22 14:33:23 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Mon Apr 22 14:33:23 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Mon Apr 22 14:33:23 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Mon Apr 22 14:33:23 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: 0/ESB/App1
Mon Apr 22 14:30:28 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Mon Apr 22 14:30:28 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Mon Apr 22 14:30:28 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Mon Apr 22 14:30:28 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: 0/ESB/App1
Thank you
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
