Skip to content

Commit

Permalink
Merge branch '2.3.x'
Browse files Browse the repository at this point in the history
Closes gh-24026
  • Loading branch information
wilkinsona committed Nov 4, 2020
2 parents a4505ea + 28f7bc3 commit a1af996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -335,7 +335,8 @@ public static class Tomcat {

/**
* Whether requests to the context root should be redirected by appending a / to
* the path.
* the path. When using SSL terminated at a proxy, this property should be set to
* false.
*/
private Boolean redirectContextRoot = true;

Expand Down
Expand Up @@ -883,6 +883,9 @@ With this option, the Web servers themselves natively support this feature; you
If this is not enough, Spring Framework provides a {spring-framework-docs}/web.html#filters-forwarded-headers[ForwardedHeaderFilter].
You can register it as a Servlet Filter in your application by setting `server.forward-headers-strategy` is set to `FRAMEWORK`.

TIP: If you are using Tomcat and terminating SSL at the proxy, configprop:server.tomcat.redirect-context-root[] should be set to `false`.
This allows the `X-Forwarded-Proto` header to be honored before any redirects are performed.

NOTE: If your application runs in Cloud Foundry or Heroku, the configprop:server.forward-headers-strategy[] property defaults to `NATIVE`.
In all other instances, it defaults to `NONE`.

Expand Down

0 comments on commit a1af996

Please sign in to comment.