[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] ProxyServlet.Transparent redirect problem

Hi David,

Take a look at this:

Or the old way (which I used before X-Forwarded-Proto was supported):
override SelectChannelConnector.customize(..) like this:

public void customize(org.mortbay.io.EndPoint endpoint, Request request) throws IOException {
  super.customize(endpoint, request);


On Wed, Jul 13, 2011 at 12:14 PM, David Hovemeyer <david.hovemeyer@xxxxxxxxx> wrote:
Hi all,

I am using ProxyServlet.Transparent to proxy some paths from a
"front-end" instance of jetty to another "back-end" instance.

This works beautifully, except in one specific case: if the front-end
instance is serving https and the back-end is serving http, redirects
generated by the back-end do not have the protocol rewritten
by the proxy servlet before they are sent back to the client
web browser.  The client gets redirected to an http URL,
which of course doesn't work, since the front-end is serving only

Is there some way I can get ProxyServlet.Transparent to modify
the redirect to convert "http" to "https"?

jetty-users mailing list