Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
a1af9964
Commit
a1af9964
authored
Nov 04, 2020
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x'
Closes gh-24026
parents
a4505eae
28f7bc37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ServerProperties.java
...ingframework/boot/autoconfigure/web/ServerProperties.java
+2
-1
howto.adoc
...oot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc
+3
-0
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
View file @
a1af9964
...
@@ -335,7 +335,8 @@ public class ServerProperties {
...
@@ -335,7 +335,8 @@ public class ServerProperties {
/**
/**
* Whether requests to the context root should be redirected by appending a / to
* 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
;
private
Boolean
redirectContextRoot
=
true
;
...
...
spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto.adoc
View file @
a1af9964
...
@@ -883,6 +883,9 @@ With this option, the Web servers themselves natively support this feature; you
...
@@ -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].
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`.
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`.
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`.
In all other instances, it defaults to `NONE`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment