Skip to content

Commit 06fa2a9

Browse files
committed
Merge branch '1.1.x'
2 parents 104d625 + 1b8f579 commit 06fa2a9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

+12-2
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,19 @@ HTTPS connector:
465465

466466
[[howto-use-tomcat-behind-a-proxy-server]]
467467
=== Use Tomcat behind a front-end proxy server
468-
Spring Boot will automatically configure Tomcat's `RemoteIpValve`. This allows you to
468+
Spring Boot will automatically configure Tomcat's `RemoteIpValve` if you enable it. This allows you to
469469
transparently use the standard `x-forwarded-for` and `x-forwarded-proto` headers that
470-
most front-end proxy servers add. If your proxy uses different headers you can
470+
most front-end proxy servers add. The valve is switched on by setting one or both of these
471+
properties to something non-empty (these are the conventional values used by most proxies, and if
472+
you only set one the other will be set automatically):
473+
474+
[indent=0]
475+
----
476+
server.tomcat.remote_ip_header=x-forwarded-for
477+
server.tomcat.protocol_header=x-forwarded-protocol
478+
----
479+
480+
If your proxy uses different headers you can
471481
customize the valve's configuration by adding some entries to `application.properties`,
472482
e.g.
473483

0 commit comments

Comments
 (0)