sozu icon indicating copy to clipboard operation
sozu copied to clipboard

How modify Host header?

Open ta2013 opened this issue 1 year ago • 4 comments

How can I modify the Host header ?

In Envoy, I am using:

route:
  cluster: backend_service
  host_rewrite_literal: "myurl.example.com"

What is the similar configuration in Sozu?

ta2013 avatar Nov 15 '24 11:11 ta2013

Hello 👋,

Glad to see that you are using Sōzu. To me, this feature is not configurable in Sōzu currently. you could not rewrite path or authority of a request.

FlorentinDUBOIS avatar Nov 15 '24 12:11 FlorentinDUBOIS

This is similar to #1009. I would gladly work on a rewrite/redirect feature, but we must first define the scope and granularity to configure it.

Wonshtrum avatar Nov 15 '24 15:11 Wonshtrum

Hi @ta2013, I am currently working on a URL rewriting feature and was wondering if a system like the one proposed in issue #1161 would meet your needs. Please let me know your thoughts!

Wonshtrum avatar Dec 11 '24 16:12 Wonshtrum

Thanks for the response. I realized my initial query had an error with the upstream configuration. Apologies for the confusion. I'll reach out if I need further clarifications. Appreciate your help!

ta2013 avatar Dec 13 '24 11:12 ta2013