Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to use Jetty ProxyServlet for reverse proxying?

Since BalancerServlet has rewriteTarget implemented, it seems a workaround would be to use this with a single member.

I was experimenting with that and found a minor bug: if there are no members defined it gives a divide by zero error. (I expected something along the lines of "no balancer members defined").

Adding a member via setInitParameter balancerMember.a.proxyTo and it then starts proxying.

However, there's a more significant issue: given a servletMapping of /proxy/* a request to http://localhost:8080/proxy/ is sent to http://localhost:8081/proxy/ - I expected it would go instead to http://localhost:8081/ - i.e. that the servletMapping would be removed.

If the inclusion of servletMapping is deliberate (or can't be fixed without breaking backwards compatibility), then a parameter to explicitly exclude it would be useful.


Should I add the above as comments to 6678, raise as distinct issue(s), or something else?


Back to the top