@@ -1161,12 +1161,21 @@ message RouteAction {
1161
1161
// [#extension-category: envoy.path.rewrite]
1162
1162
core.v3.TypedExtensionConfig path_rewrite_policy = 41 ;
1163
1163
1164
+ // If one of the host rewrite specifiers is set and the
1165
+ // :ref:`suppress_envoy_headers
1166
+ // <envoy_v3_api_field_extensions.filters.http.router.v3.Router.suppress_envoy_headers>` flag is not
1167
+ // set to true, the router filter will place the original host header value before
1168
+ // rewriting into the :ref:`x-envoy-original-host
1169
+ // <config_http_filters_router_x-envoy-original-host>` header.
1170
+ //
1171
+ // And if the
1172
+ // :ref:`append_x_forwarded_host <envoy_v3_api_field_config.route.v3.RouteAction.append_x_forwarded_host>`
1173
+ // is set to true, the original host value will also be appended to the
1174
+ // :ref:`config_http_conn_man_headers_x-forwarded-host` header.
1175
+ //
1164
1176
oneof host_rewrite_specifier {
1165
1177
// Indicates that during forwarding, the host header will be swapped with
1166
- // this value. Using this option will append the
1167
- // :ref:`config_http_conn_man_headers_x-forwarded-host` header if
1168
- // :ref:`append_x_forwarded_host <envoy_v3_api_field_config.route.v3.RouteAction.append_x_forwarded_host>`
1169
- // is set.
1178
+ // this value.
1170
1179
string host_rewrite_literal = 6
1171
1180
[(validate.rules ).string = {well_known_regex : HTTP_HEADER_VALUE strict : false}];
1172
1181
@@ -1176,18 +1185,12 @@ message RouteAction {
1176
1185
// type ``strict_dns`` or ``logical_dns``,
1177
1186
// or when :ref:`hostname <envoy_v3_api_field_config.endpoint.v3.Endpoint.hostname>`
1178
1187
// field is not empty. Setting this to true with other cluster types
1179
- // has no effect. Using this option will append the
1180
- // :ref:`config_http_conn_man_headers_x-forwarded-host` header if
1181
- // :ref:`append_x_forwarded_host <envoy_v3_api_field_config.route.v3.RouteAction.append_x_forwarded_host>`
1182
- // is set.
1188
+ // has no effect.
1183
1189
google.protobuf.BoolValue auto_host_rewrite = 7 ;
1184
1190
1185
1191
// Indicates that during forwarding, the host header will be swapped with the content of given
1186
1192
// downstream or :ref:`custom <config_http_conn_man_headers_custom_request_headers>` header.
1187
- // If header value is empty, host header is left intact. Using this option will append the
1188
- // :ref:`config_http_conn_man_headers_x-forwarded-host` header if
1189
- // :ref:`append_x_forwarded_host <envoy_v3_api_field_config.route.v3.RouteAction.append_x_forwarded_host>`
1190
- // is set.
1193
+ // If header value is empty, host header is left intact.
1191
1194
//
1192
1195
// .. attention::
1193
1196
//
@@ -1203,10 +1206,6 @@ message RouteAction {
1203
1206
// Indicates that during forwarding, the host header will be swapped with
1204
1207
// the result of the regex substitution executed on path value with query and fragment removed.
1205
1208
// This is useful for transitioning variable content between path segment and subdomain.
1206
- // Using this option will append the
1207
- // :ref:`config_http_conn_man_headers_x-forwarded-host` header if
1208
- // :ref:`append_x_forwarded_host <envoy_v3_api_field_config.route.v3.RouteAction.append_x_forwarded_host>`
1209
- // is set.
1210
1209
//
1211
1210
// For example with the following config:
1212
1211
//
0 commit comments