Hi David,

Take a look at this:
http://wiki.eclipse.org/Jetty/Tutorial/Apache#Proxying_SSL_on_Apache_to_HTTP_on_Jetty

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

@Override
public void customize(org.mortbay.io.EndPoint endpoint, Request request)
throws IOException {
  request.setScheme("https");
  super.customize(endpoint, request);
}

Pavel


On Wed, Jul 13, 2011 at 12:14 PM, David Hovemeyer <[email protected]
> 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
> https.
>
> Is there some way I can get ProxyServlet.Transparent to modify
> the redirect to convert "http" to "https"?
>
> Thanks,
> Dave
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to