You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/index.adoc
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -70,19 +70,19 @@ End-to-end headers are forwarded by the proxy, hop-by-hop headers are ignored.
70
70
71
71
==== Request authority
72
72
73
-
As a transparent proxy, the request authority (`Host` header for HTTP/1.1, `:authority` pseudo header for HTTP/2) is preserved.
73
+
By default, the proxy request authority (`Host` header for HTTP/1.1, `:authority` pseudo header for HTTP/2) is set by the HTTP client according to the origin server address.
74
74
75
-
You can override the request authority
75
+
CAUTION: The origin server may need you to set the https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Host[`x-forwarded-*`] or https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Forwarded[`forwarded`] headers on the proxied request.
76
+
For example, it might use the values to compute a created HTTP resource https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Location[location].
77
+
78
+
Nevertheless, you can override the request authority:
When the request authority is overridden, the `x-forwarded-host` header is set on the request to the origin server with the original authority value.
83
-
84
-
WARNING: changing the request authority can have undesirable side effects and can affect the proxied web server that might
85
-
rely on the original request authority to handle cookies, URL redirects and such.
85
+
When the request authority is overridden, the `x-forwarded-host` header is automatically set on the request to the origin server with the original authority value.
0 commit comments