How to setup tomcat proxy so that, e.g., /proxy/http/18.104.22.168/index.html causes Tomcat to proxy http://22.214.171.124/index.html?
This looks possible via urlrewritefilter. (A filter which can be used in Tomcat or any servlet engine) The rule would look like this (untested) but should work according to the docs:
<rule> <from>^/proxy/http/[^/]+/(.*)</from> <to type='proxy'>http://$1/$2</to> </rule>