OK 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