File tree 1 file changed +12
-2
lines changed
spring-boot-docs/src/main/asciidoc
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -465,9 +465,19 @@ HTTPS connector:
465
465
466
466
[[howto-use-tomcat-behind-a-proxy-server]]
467
467
=== 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
469
469
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
471
481
customize the valve's configuration by adding some entries to `application.properties`,
472
482
e.g.
473
483
You can’t perform that action at this time.
0 commit comments