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, I had to change your code to be 5 as that seems to work but here is the messages I get
Tue Apr 23 13:50:46 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Original request is: chucktest.test.com/8080/ESB/App1/
Tue Apr 23 13:50:46 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: /ESB/App1/
Tue Apr 23 13:50:46 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Tue Apr 23 13:50:46 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Tue Apr 23 13:50:46 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
Tue Apr 23 13:51:03 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Original request is: chucktest.test.com/8081/ESB/App2/
Tue Apr 23 13:51:03 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New URI is: /ESB/App2/
Tue Apr 23 13:51:03 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : New Port is:
Tue Apr 23 13:51:03 EDT 2013 info tmm tmm[8659] Rule /Common/jose-portredirect-test : Newport Variable was empty
Tue Apr 23 13:51:03 EDT 2013 info tmm tmm[8659] Rule /Common/log-test : chucktest.test.com::
It is not populating the port value that is where I am stumped? The only reason the 8080 works is because that is the default pool.
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