I am trying out a new REST service which implements the functionality of a REST service that we already have in place, just more efficiently.
So as to check that everything is working correctly before putting it live I would like to split the incoming HTTP requests to:
- The current system (so that this is transparent to the user) and have responses go from here.
- My new system and have responses go back to the proxy but no further.
Then, log requests and responses from both systems so that I can compare the two log files and be sure that they are the same (except for timestamps, session IDs, etc.)
mod_proxy and mod_rewrite seem to be based (reasonably) on one web server responding to each request even if there are multiple webservers load-balancing many requests.