I'm getting messages on a apache web server( proxy) to the same url but they need to go to different nodes.
Is it possible to write a perl script that forwards it to the right node based on the content of the message?
So far I created a Location in apache and created a first.pm.
This first.pm can read the body and can decide where it should go.
I tried redirecting, this works but the body(data) of the message is lost. Instead of redirecting the messaged should be "forwarded" (proxy) to a new url.
Message on http://proxy/first
body contains "first" -> to node 1
body contains "second" -> to node 2
Can this be done and if yes any hint in the right direction?
Cheers.