Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] URL Rewrite, including http->https

Hi Nils,

 Thanks. That works for http -> https. How about non-ww.domain.com to www.domain.com?

Pankaj


---- On Thu, 19 Oct 2017 08:55:22 -0700 Nils Kilden-Pedersen<nilskp@xxxxxxxxx> wrote ----

Take a look at org.eclipse.jetty.server.handler.SecuredRedirectHandler


On Fri, Oct 13, 2017 at 4:14 PM, Pankaj K Garg <garg@xxxxxxxxxxx> wrote:
Hi,

 I'm looking for a simple way of re-directing all HTTP traffic to HTTPS, and all non-www.domain.com to www.domain.com.

 From Googling around, it doesn't look like this is straightforward in Jetty like in Apache or ngnix.

 Please let me know if there's a simple way of doing this.

 Thanks.

Pankaj


Back to the top