如何设置tomcat代理,例如/proxy/http/1.2.3.4/index.html导致Tomcat代理http://1.2.3.4/index.html ?
这看起来可能通过urlrewritefilter。 (可以在Tomcat或任何servlet引擎中使用的filter)规则看起来像这样(未经testing),但应该按照文档工作:
<规则>
<从> ^ /代理/ HTTP /[^/]+/(.*)</从>
<to type ='proxy'> http:// $ 1 / $ 2 </ to>
</规则>
http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/3.2/index.html