Skip to content

Ability to overwrite Host Header and use $s in values #4303

@ryan-dyer-sp

Description

@ryan-dyer-sp

Is your enhancement request related to a problem? Please describe.
Yes. We have a vendor that we work with which expects us to setup reverse proxy for a specific path of our website to their server. They expect the Host header to align with $host, not with the Host of the proxy server we are directing requests to.

We have tried using a requestHeaderModifier as part of the HTTPRoute that we have setup for this proxy, but there are two issues. One is that the schema does not allow setting of the Host header at all. The second is that we cannot use $ within the values to be set.

We are being asked by the vendor to ultimately end up with a nginx configuration of RequestHeader set Host "$host"; . If there is another way to achieve this, then that works too.

What would you like to be added:
Ability to overwrite the Host header and use $s within the values instead of only standard strings

Why this is needed:
See above

Additional context
Add any other context or screenshots about the enhancement request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions