diff --git a/jetty-server/src/main/config/etc/jetty-secure-redirect.xml b/jetty-server/src/main/config/etc/jetty-secure-redirect.xml new file mode 100644 index 00000000000..3e2d14aca73 --- /dev/null +++ b/jetty-server/src/main/config/etc/jetty-secure-redirect.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/jetty-server/src/main/config/etc/jetty.xml b/jetty-server/src/main/config/etc/jetty.xml index b2d16df274c..423c63b0448 100644 --- a/jetty-server/src/main/config/etc/jetty.xml +++ b/jetty-server/src/main/config/etc/jetty.xml @@ -60,7 +60,7 @@ - + diff --git a/jetty-server/src/main/config/modules/secure-redirect.mod b/jetty-server/src/main/config/modules/secure-redirect.mod new file mode 100644 index 00000000000..6a300b86250 --- /dev/null +++ b/jetty-server/src/main/config/modules/secure-redirect.mod @@ -0,0 +1,17 @@ +DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html + +[description] +Enable SecuredRedirectHandler to redirect all http requests to https. + +[tags] +handler + +[depend] +server + +[xml] +etc/jetty-secure-redirect.xml + +[ini-template] +## The redirect code to use in the response. +# jetty.redirect.code=302